Calculator 中的函数
在 Calculator 中可以使用 listfunctions() 函数列出当前系统中预设的所有函数.
listfunctions() 还可以接受参数 1, 即 listfunctions(1), 它将列出所有函数的原型.
如果要查看函数的用法, 可以使用 help() 函数, 比如 help(len) 将显示 len() 函数的用法.
>> listfunctions()
in> listfunctions()
Collatz
binary2decimal
binary2graycode
binom
cubicsum
cubicsum2
decimal2binary
decimal2fraction
decimal2hex
decimal2octal
eq24
exp
expmo
factorial
factorise
firstfactor
fix_variables
gcd
getValueFromMemAddr
getprecision
graycode2binary
help
iscomposite
isprime
ispseudoprime
lcm
len
listfunctions
listpseudoprimes
ln
log
nextprime
pi
prevprime
print3x1Maps
q_DuanwuPlus
q_duanwu
setprecision
solve
sqrt
sqrtn
sum
symbol
trimzeros
xor
------------------------
>> listfunctions(1)
in> listfunctions(1)
Collatz(num)
binary2decimal(binary)
binary2graycode(binary)
binom(n,k)
cubicsum(max,compareWith)
cubicsum2(min,max,compareWith)
decimal2binary(num)
decimal2fraction(num)
decimal2hex(num)
decimal2octal(num)
eq24(p1,p2,p3,p4)
exp(num)
expmo(base,power,mod)
factorial(positiveinteger)
factorise(positiveInteger)
firstfactor(positiveInteger)
fix_variables(bool)
gcd(num1,num2)
getValueFromMemAddr(memoryAddress)
getprecision(positiveinteger)
graycode2binary(binary)
help(funcName)
iscomposite(positiveinteger)
isprime(positiveinteger)
ispseudoprime(positiveinteger)
lcm(num1,num2)
len(string)
listfunctions(bool)
listpseudoprimes(positiveinteger)
ln(num)
log(num)
nextprime(positiveinteger)
pi()
prevprime(positiveinteger)
print3x1Maps(from,to)
q_DuanwuPlus(positiveinteger)
q_duanwu(positiveinteger)
setprecision(positiveinteger)
solve(equation,x,minValue,maxValue)
sqrt(num)
sqrtn(num,k)
sum(general_term,x,minValue,maxValue)
symbol(x,val)
trimzeros(num)
xor(num1,num2)
Total: 45
------------------------
>>