Path: utzoo!mnetor!uunet!husc6!bbn!gatech!psuvax1!psuhcx!wcf From: wcf@psuhcx (Bill Fenner) Newsgroups: comp.sys.tandy Subject: Re: Exponential function in TRS-80 Model 1 Level 2 vs CoCo Message-ID: <3252@psuvax1.psu.edu> Date: 28 Jan 88 01:14:06 GMT References: <1632@ssc-vax.UUCP> Sender: netnews@psuvax1.psu.edu Reply-To: wcf@psuhcx (Bill Fenner) Organization: Penn State University, University Park, PA Lines: 35 Keywords: How do I convert the following variable definition? 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 /___/_<_