Author Topic: the power function  (Read 6182 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
the power function
« on: February 23, 2005, 04:41:26 PM »
Example of a power function will be

Quote
3.5
3
pow
20
store

it means

memory(20) = 3.5 * 3.5 *3.5

If anyone can provide a website that better explains the power function go ahead

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
the power function
« Reply #1 on: February 23, 2005, 04:43:13 PM »
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

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
the power function
« Reply #2 on: February 23, 2005, 04:44:24 PM »
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.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
the power function
« Reply #3 on: February 23, 2005, 04:46:30 PM »
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?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
the power function
« Reply #4 on: February 23, 2005, 04:51:10 PM »
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

You've read the readme for 2.35 right?  Because this is all in there.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
the power function
« Reply #5 on: February 23, 2005, 04:53:17 PM »
Ok its in the readme nm....

PY I AM FOOL DELETE THIS POLL

I wish there was a way to delete my own posts sometimes ....
« Last Edit: February 23, 2005, 04:54:06 PM by Botsareus »

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
the power function
« Reply #6 on: February 23, 2005, 04:54:30 PM »
Obviously one that I missed in the online Help window.

 :(  PY  :(
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
the power function
« Reply #7 on: February 23, 2005, 04:55:18 PM »
ok I ask this qustion a lot but , this ^ mutates too right?

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
the power function
« Reply #8 on: February 23, 2005, 04:56:15 PM »
And that would be because.....

The version with the new help stuff in hasn't been released yet.

DUH?

 :huh:  PY  :huh:
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
the power function
« Reply #9 on: February 23, 2005, 04:56:41 PM »
As far as I know, ^ will mutate too.  Haven't actually checked yet.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
the power function
« Reply #10 on: February 23, 2005, 04:58:13 PM »
Absolutely

What part of [span style=\'font-size:14pt;line-height:100%\']EVERTHING[/span] is it that you don't understand  :rolleyes:

Just Razzin ya  B)

 :D  PY  :D
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
the power function
« Reply #11 on: February 23, 2005, 04:59:26 PM »
thats all for tuday got to go help my mom

ok ok everything means everything , its just I never seen mutations really be usefull yet , I hope this day will come

ok just incase a list of what to check for mutations:

can program insert/remove this

*add
*sub
*div
*mult
*^

*stuff like :

Quote
*21
store

thats the list I gtg
« Last Edit: February 23, 2005, 05:03:55 PM by Botsareus »

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
the power function
« Reply #12 on: February 23, 2005, 04:59:46 PM »
Actually that isn't quite correct since I haven't actually added the specific code to allow it to be mutated.

SHEESH!

It's only a one liner for god sake.

 :rolleyes:  PY  :rolleyes:
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
the power function
« Reply #13 on: February 23, 2005, 05:00:08 PM »
"RYTH" confuses me.

I get as far as EVE and as far at the end as ING, but the middle throws me.