class9 - PHYS 5900 Class 9 Zi-Wei Lin Special input forms...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
PHYS 5900 Class 9 (9/14/2009) Zi-Wei Lin Special input forms for functions: Normal form: func[arg] Postfix form: arg // func Prefix form: [email protected] In[1]:= N @ Sin @ 50 Degree DD == Sin @ 50 Degree D êê N Out[1]= True In[2]:= N @ Sin @ 50 Degree DD == N @ H Sin @ 50 Degree DL Out[2]= True In[3]:= N @ Sin @ 50 Degree DD == N @ Sin @ 50 Degree D Out[3]= True In[4]:= Sqrt @ 3.2 D Out[4]= 1.78885 In[5]:= Sqrt @ 3.2 Out[5]= 1.78885 In[6]:= 3.2 êê Sqrt Out[6]= 1.78885 Get information about user-defined functions: In[7]:= f @ x_ D : = x^3 In[8]:= ? f Global`f f @ x_ D : = x 3
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon