Bots and Simulations > DNA - General
sin and cos approximation
Botsareus:
I am looking at adding Sin and Cos internally...
--- Quote ---sin and cos generally return a number between -1 and 1.
--- End quote ---
I would like to know the value range we going to use???
(It is part of my work for a chloroplast version over the summer, since we are modifying the DNA anyway, I have considered adding a bunch of other functions I have discussed in my old posts, one in particular will be the good old multstore)
Botsareus:
I just had an idea (I might have had this one before):
How about
--- Code: ---A B Sin
--- End code ---
will mean:
--- Code: ---Push to stack = Sin(B) * Abs(A)
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version