Welcome to iraf.net Saturday, April 27 2024 @ 05:13 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 calulate...
   
acard
 06/20/2007 08:14PM (Read 2586 times)  
++---
Junior

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

 
Profile Email
 Quote
fitz
 06/20/2007 08:14PM  
AAAAA
Admin

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

 
Profile Email
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

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