)
> False
> sage: h(x)
> x - 2
> }}}
>
> I also find misleading to have a Python argument (the x in "def
> h(x):") and a symbolic variable (here "x") having the same name. At
> least it should be mentioned.
>
> Vincent
>
> 2014-10-0
ievre wrote:
>
>
>
> Le mercredi 1 octobre 2014 22:06:50 UTC+2, NahsiN a écrit :
>>
>> Hello, I don't know where to post this so redirect me as needed. I
>> believe I have found a typo in the sage tutorial. Under Sage Tutorial v6.3
>> >> A Guided
Hello, I don't know where to post this so redirect me as needed. I believe
I have found a typo in the sage tutorial. Under Sage Tutorial v6.3 >> A
Guided Tour >> Some Common Issues with Functions we have the lines
def h(x):
if x<2:
return 0
else:
return x-2
The i
y.core.numeric as NX
> sage: phi = var('phi')
> sage: find_root(cos(phi)==sin(phi),0,pi/2)
> 0.7853981633974484
> sage:
>
> Maybe something is wrong with your installation?
>
> Regards,
> Jan
>
>
> On 8 July 2014 05:38, NahsiN > wrote:
>
&g
Hello, I just downloaded the binary of Sage 6.2 for Ubuntu 14.04 64-bit.
While going through the tutorial, find_root does not work.
sage: phi = var('phi')
sage: find_root(cos(phi)==sin(phi),0,pi/2)
---
AttributeError