Welcome to iraf.net Saturday, April 27 2024 @ 05:13 PM GMT
acard |
06/20/2007 08:14PM (Read 2586 times)
|
|
|
Status: offline
Registered: 01/18/2007
Posts: 27
|
Hi, do someone know if, and how, we can make basic operation like sum, division and so on, simply with numbers?
Like a calculator, ex (4861/5000 -1)*299793
|
|
|
|
fitz |
06/20/2007 08:14PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
You mean in the CL? Simple, just prepend the expression with an '=', e.g.[code:1:49baae6d20]cl> = (4861/5000 -1)*299793
-299793[/code:1:49baae6d20]Note you'll need to be explicit about using floating-point numbers (calculations are done internally as double precision. FWIW, you can use the same trick to evaluate sexigesimal values as well:[code:1:49baae6d20]cl> = 12:34:56.7
12.582416666667[/code:1:49baae6d20]Remember to multiply RA by 15 8-)-Mike
|
|
|
|
| |
|
Content generated in: 0.09 seconds |
|