Created
November 24, 2016 06:30
-
-
Save zhouqiang-cl/dd354eca074edfdd36c35a0e5a5d601e to your computer and use it in GitHub Desktop.
common lisp 的指数运算函数 EXP, EXPT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
语法 | |
exp number => result | |
expt base-number power-number => result | |
参数和值 | |
number --- 一个数字 | |
base-number --- 底数 | |
power-number --- 指数 | |
描述 | |
exp 自然对数的 number 次方 | |
expt 这个函数获取 base-number 的 power-number 次幂 | |
代码 | |
* (expt 3 4) | |
81 | |
* (exp 1) | |
2.7182817 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment