Welcome to iraf.net Wednesday, May 01 2024 @ 06:20 PM GMT


 Forum Index > Archives > Sitemail Archives
 |>subt<|A question on exponents
   
Anonymous: Guest
 10/23/1991 09:55PM (Read 789 times)  



Hi, I have yet another question. I am writing a CL script, and I want to
do some calculations like this:F=.87*10(to the)[.45*(DOY-150)/250]and I just cant figure out how to do it. I thought of using E, and make itF=.87E[.45*(DOY-150)/250], but it doesnt like the parenthesis.In fact, is there any way to have an expression like
F=.87E(2.2) ?Since this is base 10, maybe there is a log function? But what if the base
is not ten?I have asked around here, and no one seems to know. I have run out of ideas!Thank you for your help. -Martina Arndt

 
Anonymous: Guest
 10/23/1991 09:55PM  



Martina,> ... some calculations like this:
>
> F=.87*10(to the)[.45*(DOY-150)/250]This will work: cl> x = .87*10**(.45*(doy-150)/250)assuming that the variable doy has been declared as something previously.
I am not sure whether you are unsure about what the exponentiation operator
is in the CL, or whether you are actually constructing expressions using
those square brackets, which will cause a syntax error. You should use
nested "regular" parentheses.Hope this helps,Chris Biemesderfer
IRAF Group, NOAO
iraf@noao.edu

 
   

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login