MathGroup Archive 2005

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

Search the Archive

Strange "little" problem with scaling

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62659] Strange "little" problem with scaling
  • From: "Srinath Avadhanula" <srinathava at gmail.com>
  • Date: Wed, 30 Nov 2005 00:08:11 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi all,

I have an absurd little problem which unfortunately, I am unable to
figure out the solution to... Consider the following very simple
notebook:

\!\(y1[x_] := \(Sin[x] - x\ Cos[x]\)\/x\^3\[IndentingNewLine]
  y2[x_] := \(1\/2\) y1[x]\[IndentingNewLine]
  Plot[{y1[x]}, \ {x, \ 0, \ p}]\[IndentingNewLine]
  Plot[{y2[x]}, \ {x, \ 0, \ p}]\)

The above can be copied/pasted into a new mathematica notebook. If you
do not wish to do this, please see a screenshot at:

http://robotics.eecs.berkeley.edu/~srinath/mathematica_prob.png

Basically, I have defined two functions y1[x] and y2[x] which _should_
ideally only differ by a factor of 2. However, their shapes when I plot
them are _completely_ different! I simply do not understand what I am
doing wrong. I am pretty sure that this is a syntax issue with the way
I am defining the various functions.

Thinking a little bit more about this, it looks like neither of the two
plots are correct! The correct value of y1[pi] == 1/pi^2 and y2[pi] ==
1/2/pi^2. It doesn't look like the plots are anywhere close to this.

My Mathematica version: 5.1

Many thanks for any help (I apologize in advance for this silliness)
Srinath


  • Prev by Date: Re: Re: Re: Package development
  • Next by Date: Re: 3D plot question
  • Previous by thread: 3-state markov process
  • Next by thread: Re: Strange "little" problem with scaling