Sandbox
From RHESSI Wiki
(Difference between revisions)
(New page: <source lang="csharp"> // Hello World in Microsoft C# ("C-Sharp"). using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hello, Worl...) |
|||
(2 intermediate revisions not shown) | |||
Line 13: | Line 13: | ||
} | } | ||
</source> | </source> | ||
+ | |||
+ | <source lang="idl"> | ||
+ | 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 | ||
+ | </source> | ||
+ | |||
+ | <math> | ||
+ | A = \frac{1}{\int f dx} | ||
+ | </math> | ||
+ | |||
+ | <inputbox> | ||
+ | type=search | ||
+ | width=42 | ||
+ | buttonlabel=Go | ||
+ | searchbuttonlabel=Search | ||
+ | break=no | ||
+ | </inputbox> |
Latest revision as of 15:07, 5 November 2009
// 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