Intro to Mathematica Wolfram Mathematica An important feature

  • Slides: 12
Download presentation
Intro to Mathematica

Intro to Mathematica

Wolfram Mathematica • An important feature of Mathematica is its ability to manipulate symbols

Wolfram Mathematica • An important feature of Mathematica is its ability to manipulate symbols • It also allows for numerical solutions and data visualization. • It’s not free. You will probably have to come to class to work on it.

Start/All Programs/Wolfram Mathematica 11. 1. 1

Start/All Programs/Wolfram Mathematica 11. 1. 1

Click on New Document

Click on New Document

Use Shift+Enter to distinguish something to be evaluated versus just explanatory text I did

Use Shift+Enter to distinguish something to be evaluated versus just explanatory text I did not type In[1]: and the whole Out[1] line was generated for me Excel and R would require a*t for us to represent the variable a multiplied by the variable t, in Mathematica a space is enough

vf == vi + a t • In Mathematica and equation requires two equal

vf == vi + a t • In Mathematica and equation requires two equal signs. • The expression a t means a multiplied by t and can also be written as a*t. Without a space at would be a new symbol. • The symbol vf stands for the final velocity • The symbol vi stands for the initial velocity • The symbol a stands for the acceleration which is constant for this scenario • The symbol t stands for time

Save it!

Save it!

Mathematica can solve (symbolically) the equation for the variable t. That’s just where my

Mathematica can solve (symbolically) the equation for the variable t. That’s just where my cursor happened to be Be careful about just blindly copying what I have without thinking about it. If you had made a typo and then re-entered the formula, then the equation you want to solve might be some other Out – e. g. Out[392]

Enter the second kinematics equation Again note the spaces.

Enter the second kinematics equation Again note the spaces.

Use /. (Replace. All) to substitute in the first kinematics equation solved for time

Use /. (Replace. All) to substitute in the first kinematics equation solved for time into the second kinematics equation Again watch the numbers, yours might be different. And if you close Mathematica (completely) and rerun your notebook the numbers might be different than they were previously

Using Expand

Using Expand

Assign values to symbols to determine a numerical solution If the acceleration is -9.

Assign values to symbols to determine a numerical solution If the acceleration is -9. 8 m/s^2 And the initial velocity is 15 m/s and initial height is zero What is the “final” position when the final velocity is 0 (i. e. the highest height)?