Physics Forums

Physics Forums (http://www.physicsforums.com/index.php)
-   Math & Science Software (http://www.physicsforums.com/forumdisplay.php?f=189)
-   -   Simple Mathematica Question (http://www.physicsforums.com/showthread.php?t=592882)

clanijos Apr2-12 05:32 PM

Simple Mathematica Question
 
Could someone tell me how I would go about plotting a function in Mathematica over say, x^2? or sqrt(x)?

Thanks!

Bill Simpson Apr3-12 02:01 AM

Re: Simple Mathematica Question
 
Quote:

Quote by clanijos (Post 3846931)
Could someone tell me how I would go about plotting a function in Mathematica over say, x^2? or sqrt(x)?

Perhaps more appropriate posted here:

http://www.physicsforums.com/forumdisplay.php?f=189

To do this use

Plot[x^2,{x,-3,3}]

which is documented here

http://reference.wolfram.com/mathematica/ref/Plot.html

or when you are running the software hit <f1> and when the help browser pops up type in Plot or any other likely keyword you want documentation on.

Mathematica is fanatic about exact use of {} versus [] versus (), := versus = versus == versus even === and correct capitalization. Make an error in any one of those and you will get possibly incomprehensible error messages.

clanijos Apr3-12 07:12 PM

Re: Simple Mathematica Question
 
Thanks!

Edit: Gah, replied before I really looked over what you said! Yeah, I know how I should go about plotting a function like that. What I am looking for is something similar to LogPlot, but where the scale of the x axis can be changed to another function.

NascentOxygen Apr9-12 09:14 PM

Re: Simple Mathematica Question
 
Quote:

Quote by clanijos (Post 3848736)
What I am looking for is something similar to LogPlot, but where the scale of the x axis can be changed to another function.

You want to compress the scale on the x-axis, but not logarithmically? It's difficult to see why you might want to do that. I think you would have to do the compression yourself and then re-label the axis after the computer has done the plotting.

Exactly what are you wanting to plot?


All times are GMT -5. The time now is 07:52 AM.

Powered by vBulletin Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2014 Physics Forums