## plot a function

Mathematica

### Next

• 1. : Polar Plot
I think you must convert to Cartesian coordinates first: In:= eq = r^2 == 3 + 2*r*Cos[\[Theta]] In:= eq2 = FullSimplify[ eq /. {r -> Sqrt[x*x + y*y], \[Theta] - > ArcTan[x, y]}] Out= 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

```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

```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

```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.

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

```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

```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

```

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

```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

```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.

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

```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

```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

```

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

```

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.

```