Hi,
It's not a root problem, your two equations are not identical:
In the first line, you have (Sin(x)/1.414)^2 , in the second, you have
(sin(x)/(1.414)^2).
In general, try to cut down the number of bracktest to make the
expression less difficult to read.
Till
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Muhammad Asghar
Sent: 12 October 2006 09:41
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] About a formula
Hi Rene
I am trying to plot a formula which is
S = 3/2 * [ 0.703 * (Sin(x)/1.414)^2 + 0.297 * ((1-Cos(x))/2)^2 +
((1+Cos(x))/2)^2 ].
I have tried to use the
root[]TF1
f1("polarization","(3/2)*(0.703*(sin(x)/(1.414)^2))+(3/2)*(0.297*((((1-c
os(x))/2)^2)))+(3/2)*(((1+cos(x))/2)^2)",-1,1);
root[] f1->Draw(); Received on Thu Oct 12 2006 - 12:28:13 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET