       Re: Strange "little" problem with scaling

• To: mathgroup at smc.vnet.net
• Subject: [mg62675] Re: Strange "little" problem with scaling
• From: dh <dh at metrohm.ch>
• Date: Wed, 30 Nov 2005 22:08:35 -0500 (EST)
• References: <dmjsc5\$66j\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Srinath Avadhanula wrote:
> Hi all,
>
Hello Srinath,
the note  book you enclosed works perfectly right in my version:
5.1 for Microsoft Windows (October 25, 2004)

An overall factor will not distort the shape because Mathematica will
automatically scale the function that it looks similar (as long as you
did not specify a fixed scale!).

Daniel

> 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.
>
> 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: references to numbered equations in arXiv style sheet
• Next by Date: Re: Problem with RSolve
• Previous by thread: Re: references to numbered equations in arXiv style sheet
• Next by thread: Re: Strange "little" problem with scaling