MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Simple equation won't plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82932] Re: Simple equation won't plot
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 4 Nov 2007 06:03:58 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fghbpj$jnk$1@smc.vnet.net>

Bert Aerts (rm x) wrote:
> When I type following commands in Mathematica 6.0.1:
> m = 70; a = 0.08; x0 = 5000; g = 9.81;
> x[t_] = x0 - m*Log[Cosh[t*Sqrt[g*a]/Sqrt[m]]]/a;
> P1ot[x[t], {t, 0, 60}]
---^
You have mistyped the numeric character 1 (one) in place of the letter l 
(el, lowercase L). P1ot (with a one) is a valid Mathematica name, which 
is different from Plot (with an el).

> I don't get a plot, but instead:
> P1ot[5000 - 875. Log[Cosh[0.105884 t]], {t, 0, 60}]
> How can I get a real plot? I tried [N[x[t]] and Evaluate[x[t]] but nothing
> worked...

<snip>

So try,

m = 70; a = 0.08; x0 = 5000; g = 9.81;
x[t_] = x0 - m*Log[Cosh[t*Sqrt[g*a]/Sqrt[m]]]/a;
Plot[x[t], {t, 0, 60}]

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: how to draw a huffman tree
  • Next by Date: Re: Simple equation won't plot
  • Previous by thread: Re: Simple equation won't plot
  • Next by thread: Re: Simple equation won't plot