Hi
Attached is code to evaluate math same as Basic4ppc code operations.
This supports ^, MOD, /,*,,+, INT,ABS,SIN,COS,TAN,ASIN,ACOS, ATAN,LN,LOG,EX(for e),E[E+,E](for eng'g),PI,SQRT,Factorial(!)integer up to 170(max).
calculations in radians.
I've tried to compare results to Basic4PPC operations and it's ok, but still need to test for other bugs.(sometimes I got last (13th)decimal place descripancy in comparison).
EDIT: file updated by Rioven 26JAN09fixed bugs on ^ function, added input error filters on parenthesis.
EDIT: file updated by Rioven 24JAN09 fixed bug
EDIT: file updated by Klaus 21JAN09 added LOG & SQRT functions
Regards,
Attached is code to evaluate math same as Basic4ppc code operations.
This supports ^, MOD, /,*,,+, INT,ABS,SIN,COS,TAN,ASIN,ACOS, ATAN,LN,LOG,EX(for e),E[E+,E](for eng'g),PI,SQRT,Factorial(!)integer up to 170(max).
calculations in radians.
I've tried to compare results to Basic4PPC operations and it's ok, but still need to test for other bugs.(sometimes I got last (13th)decimal place descripancy in comparison).
EDIT: file updated by Rioven 26JAN09fixed bugs on ^ function, added input error filters on parenthesis.
EDIT: file updated by Rioven 24JAN09 fixed bug
EDIT: file updated by Klaus 21JAN09 added LOG & SQRT functions
Regards,
Attachments

12.5 KB Views: 261
Last edited: