Sandbox

From HelioWiki Home Page
Jump to navigation Jump to search
// Hello World in Microsoft C# ("C-Sharp").

using System;

class HelloWorld
{
    public static int Main(String[] args)
    {
        Console.WriteLine("Hello, World!");
        return 0;
    }
}
phi = (90.0-latitude)/!radeg
theta = longitude/!radeg

x = (1.+height) * sin(phi) * cos(theta)
y = (1.+height) * sin(theta) * sin(phi)
z = (1.+height) * cos(phi)

IF keyword_set(debug) THEN stop

return, [transpose(x), transpose(y), transpose(z)]

END

<math> A = \frac{1}{\int f dx} </math>