plot a function

Mathematica

    Next

  • 1. : Polar Plot
    I think you must convert to Cartesian coordinates first: In[41]:= eq = r^2 == 3 + 2*r*Cos[\[Theta]] In[44]:= eq2 = FullSimplify[ eq /. {r -> Sqrt[x*x + y*y], \[Theta] - > ArcTan[x, y]}] Out[44]= y^2 + (x - 2)*x == 3 This seems to describe a circle of radius 2 centered at {1,0}, which you can verify in version 6 with ContourPlot[Evaluate[eq2],{x,-1,3},{y,-2,2}] Use ImplicitPlot in version 5. Tom Burton
  • 2. WindowMargins question
    Hi I have created a small palette. I want to place it at the very top of my main monitor. If I do something like this.. CreatePalette[expr, WindowMargins -> {{500, Automatic}, {Automatic, 0}}, WindowTitle -> ""]; the palette is placed below the main Mathematica menu. I want to place it higher, at the very otp of the screen. How do I do that? Thank you for your help
  • 3. vector representation
    Hi, Having the vector r(a,b,c) = {a i, b j, c k} where i, j, k are the unit vectors and a, b, c arbitrary coefficients, I want to calculate, for example r(1,2,1) etc. Also I want to be able to add 2 or more of such vectors trough their indexes, for example: r(0,0,1) + r(1,2,3) and the sum to be expressed like this r(1,2,4) and not like {1i, 2j, 4k}. Thank You in advance!

Plot a function

Postby oracle9i-helpme » Wed, 28 Apr 2004 17:59:02 GMT

If i want to draw a function 

y=sinx*e^x

in x =0.5 to 1.5 [only in this interval  ]

How I can do that with mathematica?


Re: Plot a function

Postby Jens-Peer Kuska » Thu, 29 Apr 2004 20:03:29 GMT

Hi,


Plot[Sin[x]*Exp[x], {x, 0.5, 1.5}]


and read the manual it is full of examples.

Regards
  Jens





Plot a function

Postby David Park » Thu, 29 Apr 2004 20:09:40 GMT

You will have to work through much of Part I in The Mathematica Book, or
some elementary Mathematica book, to learn the syntax and common commands.
It will save a lot of time if you intend to make much use of Mathematica.

For your plot...

Plot[Sin[x]E^x, {x, 0.5, 1.5}]

or for something a little fancier we can add options...

Plot[Sin[x]E^x, {x, 0.5, 1.5},
  Frame -> True,
  Axes -> False,
  FrameLabel -> {x, y},
  PlotLabel -> Sin[x]E^x]

David Park
 XXXX@XXXXX.COM 
 http://www.**--****.com/ ~djmp/

From: oracle [mailto: XXXX@XXXXX.COM ]


If i want to draw a function

y=sinx*e^x

in x =0.5 to 1.5 [only in this interval  ]

How I can do that with mathematica?




Plot a function

Postby John C. Erb, Ph.D. » Thu, 29 Apr 2004 20:15:07 GMT

Suggest you look up "Plot" in the Help Browser.

Plot[Sin[x]*Exp[x],{x,0.5,1.5}]


John C. Erb

-----Original Message-----
From: oracle [mailto: XXXX@XXXXX.COM ] 
Subject:  Plot a function

If i want to draw a function 

y=sinx*e^x

in x =0.5 to 1.5 [only in this interval  ]

How I can do that with mathematica?



Plot a function

Postby Yasvir Tesiram » Thu, 29 Apr 2004 20:19:48 GMT

Hi,

Plot[Sin[x]*Exp[x], {x, 0.5, 1.5}]

See the Mathematica Book Section 1.9.1 for more basic help on plotting.

Cheers
Yas








Re: Plot a function

Postby Bill Rowe » Thu, 29 Apr 2004 20:36:02 GMT







This is such a basic operation in Mathematica that your question makes me doubt you've read any of the Mathematica Book. You really ought to do that if you are going to even approach using Mathematica efficiently.

In any case, the answer is

Plot[Sin[x] Exp[x],{x, 0.5, 1.5}]

Re: Plot a function

Postby Jens-Peer Kuska » Fri, 30 Apr 2004 13:39:02 GMT

Hi,


Plot[Sin[x]*Exp[x], {x, 0.5, 1.5}]


and read the manual it is full of examples.

Regards
  Jens





Plot a function

Postby David Park » Fri, 30 Apr 2004 13:45:07 GMT

You will have to work through much of Part I in The Mathematica Book, or
some elementary Mathematica book, to learn the syntax and common commands.
It will save a lot of time if you intend to make much use of Mathematica.

For your plot...

Plot[Sin[x]E^x, {x, 0.5, 1.5}]

or for something a little fancier we can add options...

Plot[Sin[x]E^x, {x, 0.5, 1.5},
  Frame -> True,
  Axes -> False,
  FrameLabel -> {x, y},
  PlotLabel -> Sin[x]E^x]

David Park
 XXXX@XXXXX.COM 
 http://www.**--****.com/ ~djmp/

From: oracle [mailto: XXXX@XXXXX.COM ]


If i want to draw a function

y=sinx*e^x

in x =0.5 to 1.5 [only in this interval  ]

How I can do that with mathematica?




Plot a function

Postby John C. Erb, Ph.D. » Fri, 30 Apr 2004 13:50:10 GMT

Suggest you look up "Plot" in the Help Browser.

Plot[Sin[x]*Exp[x],{x,0.5,1.5}]


John C. Erb

-----Original Message-----
From: oracle [mailto: XXXX@XXXXX.COM ] 
Subject:  Plot a function

If i want to draw a function 

y=sinx*e^x

in x =0.5 to 1.5 [only in this interval  ]

How I can do that with mathematica?



Plot a function

Postby Yasvir Tesiram » Fri, 30 Apr 2004 13:54:13 GMT

Hi,

Plot[Sin[x]*Exp[x], {x, 0.5, 1.5}]

See the Mathematica Book Section 1.9.1 for more basic help on plotting.

Cheers
Yas








Re: Plot a function

Postby Bill Rowe » Fri, 30 Apr 2004 14:08:27 GMT







This is such a basic operation in Mathematica that your question makes me doubt you've read any of the Mathematica Book. You really ought to do that if you are going to even approach using Mathematica efficiently.

In any case, the answer is

Plot[Sin[x] Exp[x],{x, 0.5, 1.5}]

Re: plot a function

Postby Szabolcs » Sat, 03 May 2008 19:03:39 GMT



ParametricPlot[{f[y], y}, {y, ymin, ymax}]

You will have to figure out ymin and ymax on your own, but that should
be easy using Solve/NSolve.



Return to Mathematica

 

Who is online

Users browsing this forum: No registered users and 89 guest