Professional Documents
Culture Documents
Practical 1 Functions in Mathematica: 1. Testing Symbols
Practical 1 Functions in Mathematica: 1. Testing Symbols
Functions in Mathematica
1. Testing Symbols
a) “==” is used to test if one quantity is equal to another
In[5]:= Sqrt[50 653] ⩵ (50 653) ^ (1 / 2)
Out[5]= True
In[13]:= Sin[90°]
Out[13]= 1
Note: The output tells us that 324=2^2 3^4 and 4832875=5^3 23^1
41^2
In[24]:= Mod[21, 7]
Out[24]= 0
In[26]:= 1 + {2, 0, 1, 0}
Out[26]= {3, 1, 2, 1}