[comp.sys.tandy] Exponential function in TRS-80 Model 1 Level 2 vs CoCo

wcf@psuhcx (Bill Fenner) (01/28/88)

In article <1632@ssc-vax.UUCP> ray3rd@ssc-vax.UUCP (Ray E Saddler III) writes:
[finds this line:]

>1234 A=160200/(1.523[(C*3.2))

[decides to replace it with this:]

>1234 A=160200/(1.523EXP(C*3.2))

>Call me stupid, but I am *NO* math whiz.  Please help me fix this
>line so I can get on with my life.
OK! :-)

First of all, there's a syntax error in that line... it should be

1234 A=160200/(1.5233*EXP(C*3.2))

unfortunately, this isn't wat you want, as this would be (in model 1 style)

1234 A=160200/(1.5233*2.7818281828[(C*3.2))

I think the character you want to use instead of the [ is ^.
  ^---^ <-- notice the *think*

Also, have you *tried* it with the [?
Either [ or ^ should work.

>Thank you very much!                     

You're welcome!

   __      _  _      _____   Bill Fenner      wcf @ psuhcx.bitnet
  /  )    // //       /  '                    wcf @ hcx.psu.edu
 /--<  o // //     ,-/-, _  __  __  _  __     ihnp4!psuvax1!psuhcx.bitnet!wcf
/___/_<_</_</_    (_/   </_/ <_/ <_</_/ (_