Message Boards Message Boards

0
|
7407 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Issues with plot

Posted 9 years ago

Hi, I'm using Mathematica only from few days so I'm not very good. I have a trivial problem with my first script, I can't get the plot that I want. This is the script:

pict1 pict2

So, as you can see. I can't get any plot! Where are my mistakes??

Please help me!

Davide

Attachments:
2 Replies
Posted 9 years ago

The core issue is you have used sqrt for square root, when it should be Sqrt. All of Mathematica's reserved symbols begin with upper case. Therefore, it is also good practice to begin user symbols with lower case to avoid conflict. Also, with regard to the formatting in your notebook, all of the expressions are entered in a single cell. If you enter these expressions one at a time, each in their own cell, and evaluate them each in turn as you go, you will be able to confirm immediately that the calculations are developing as you expect. Later it is easy to put semicolons at the end of expressions when you don't want to see the output in an output cell, and you can evaluate the entire sequence by selecting Evaluate Notebook from the top menu bar.

Best regards, David

Notebook attached

Attachments:
POSTED BY: David Keith

Thank you very much!!!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract