Sandbox

From RHESSI Wiki

Revision as of 21:57, 6 October 2008 by Schriste (Talk | contribs)
Jump to: navigation, 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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox