Code center > Dead-End and Solved Suggestion Requests
the power function
Botsareus:
Example of a power function will be
--- Quote ---3.5
3
pow
20
store
--- End quote ---
it means
memory(20) = 3.5 * 3.5 *3.5
If anyone can provide a website that better explains the power function go ahead
Numsgil:
We have a power function.
cond
start
2 5 ^
50 store
stop
plug this into a txt file, load it into DB, open console, and type ? 50
you will see 50->32
Numsgil:
and you can't have digits in the memory locations.
Memory is in integers. If you want more digits of precision, you have to use stack manipulations to get it.
Botsareus:
ok it does not say in the help files so I did not know
The new qustion is:
Do we need help with the ^ operator?
Numsgil:
--- Quote ---F. ^ - takes the second value on the stack to the first value on the stack power. Ie: 5 2 ^ places 25 onto the stack
--- End quote ---
You've read the readme for 2.35 right? Because this is all in there.
Navigation
[0] Message Index
[#] Next page
Go to full version