Welcome to iraf.net Thursday, May 02 2024 @ 04:43 AM GMT
Anonymous: Guest |
10/23/1991 09:55PM (Read 790 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
|
|
|
|
| |
|