Message Boards Message Boards

0
|
8404 Views
|
6 Replies
|
10 Total Likes
View groups...
Share
Share this post:

Basics crash mathematica

Posted 10 years ago

Where to start? I'm soo lost. Which tutorial to read? I've gone though many. I want to do basic algebra. Why does this crash mathimatica?

eq1 == x == y + f[z]

If I also have eq2 == y == g[z] How do I get it to substitute eq2 into eq1? (x == g[z] + f[z] )

The models i'm using are more complex that that, and I get many many pagers of output.

POSTED BY: Thomas Dobroth
6 Replies

While I'm here,

Your example did not crash Mathematica for me. There may have been definitions of some symbols already.

If you decide to contact Technical Support (http://www.wolfram.com/support/contact/email/ , or email to support@wolfram.com) to report the crash, please include everything needed to duplicate the crash.
I suggest exiting and restarting Mathematica and going through the steps you found to verify that they work with a fresh copy.

POSTED BY: Bruce Miller

http://www.wolfram.com/training/courses/mathematica/ lists free and for-pay videos.

Introductory pages in the online/in-product documentation are not as obvious as they used to be. I suggest starting with Help menu - Wolfram Documentation or http://reference.wolfram.com/language/ and starting at the beginning with Core Language & Structure.

enter image description here

Pick a sub-topic, for example, Language Overview, click it, and in the upper-right corner choose a tutorial.

enter image description here

POSTED BY: Bruce Miller
Posted 10 years ago

The example I gave you was simplified from my real problem. I tried what you suggested. When I type (the equivalent of)

 eq1

The output is

eq1

I will try to find some videos on the web.

POSTED BY: Thomas Dobroth
Posted 10 years ago
POSTED BY: Bill Simpson
Posted 10 years ago

Bill,

Thanks for your quick and detailed response.

Wow, Stunning result.

You mean to say that to understand the basics of this Mathematica I should by an old, out-of-print, and outdated book. There is no other means? Video Tutorial? On-line tutorial?

Crashing should cause someone some concern.

Finally, if the point of Mathematica is to do the math for up (speed and accuracy) then why use /. ->. I can use cut/copy and paste also. For that mater, why not just use paper.

Is there a way to get the program to re-evaluate the notebook from scratch? Can I get rid of eq1? Seems if I delete the cell, eq1 persists. If I try to correct the line, it causes errors. (Replace "==" with "="). So what's on the page (notebook) does not correspond with what's going on in the background??

Any other thoughts?

POSTED BY: Thomas Dobroth
Posted 10 years ago

If you just bought it new and just got it installed and it crashes when you try almost anything then you might contact customer support directly. They are supposed to help with getting the program installed and running for you initially. This community is often aimed more at "how can I calculate this?"

It shows my age, but I would recommend you find an introductory book that seems to match your style and read that to help you get started. Mathematica Navigator is very old now, but has lots of simple examples on every topic. Used copies are sometimes only a dollar. That lacks some of the latest changes to Mathematica, but might help you understand the fundamentals.

= and == and := and there is even an === and those all mean totally different things to Mathematica. eq1 = x==y+f[z] roughly translates into english as "name the following thing eq1 and that thing is x==y+f[z] and that thing is comparing x with y+f[z] to see whether they are "equal" or not." When you type in that line and press <shift><enter> Mathematica will quietly remember that and if you later forget and try to use eq1 for something else you may be surprised.

Replacing one thing with another in Mathematica can be challenging, to put it politely. If you have a bright student and ask them to do a substitution in an equation they will use "mathematical maturity" or "common sense" to do that. Mathematica will often surprise you when you ask it to do the same. Exactly how it works is more than a paragraph is going to be able to explain.

Try this and see if you have any initial success

eq1 = x == y + f[z];
eq1 /. y -> g[z]

followed by shift and enter and see if it displays

x == f[z] + g[z]

Hopefully that will work for you. Note that has not changed the value you assigned to eq1. If you want to change the value then try

eq1 = eq1 /. y -> g[z]

and then check that the assignment worked by typing

eq1

I hope it works for you. Note: /. is one of many many Mathematica "shortcuts" that are often used instead of typing out the complete Mathematica function name. You can look up /. in the help system and see the examples there. You should be able to use ReplaceAll[eq1,y->g[z]] or the form I showed above and get the same result.

POSTED BY: Bill Simpson
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