Skip to main content

1.6) Simple Mathematics


We will now write a program to do some simple maths. Open a file called simple_maths.pro and insert the lines below into the file.

print, 2 + 3
END

Using the IDL command prompt, run the program.

.r simple_maths

IDL should print the number "5" to the screen.