Jason Grout writes:
>
>
> So which of your "if" conditions is true when the input is
> the variable x? I think that's the problem---none of the
> conditions is true, so angle is never set, so you are trying
> to return an undefined variable.
>
>
> The find_root function takes in just a function
"ma...@mendelu.cz" writes:
>>
>> sage: def theta(dz):
>> ... angle=0;
>> ... if 0<=dz<2*r*cot(gangle) : angle= 2*arcsin(dz*tan(gangle)/2/r);
>> ... if 2*r*cot(gangle)<= dz < 2*2*r*cot(gangle) : angle=
>> 2*arcsin((dz-2*r*cot(gangle))/(cot(gangle)*2*r)) - pi;
>> ... if 2*2
"ma...@mendelu.cz" writes:
> On 9 ún, 11:22, Giovanni Lanzani wrote:
>> Dear all
>>
>> I have the following sage code
>>
>> sage: gamma,r,gangle,dz2,Nstep,Nrib,b=var('gamma,r,gangle,dz2,Nstep,Nrib,b')
>> sage: a=11.5; b=6;#this is f
ning? Am I doing something wrong?
Thanks
Giovanni Lanzani
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-s