[A89] Re: Exponents


[Prev][Next][Index][Thread]

[A89] Re: Exponents




WHAT? Scott didn't suggest the estack? Well, that is how I would do it. In short, using the estack is exactly how the calculator works. So, to do 5^6, you can do:

push_shortint (6);

push_shortint (5);

push_quantum (POW_TAG);

NG_rationalESI (top_estack);

Will put 5^6 on the top of the estack, and you can display it with several ways: Parse2DExpr, displaystatements, etc. You can do whatever the calc can do. Look at the TIGCC docs of tags to see what you can do and the syntax.



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup




Follow-Ups: References: