On Tue, Aug 13, 2013 at 12:27 PM, Ondřej Čertík <[email protected]> wrote:
> On Tue, Aug 13, 2013 at 8:43 AM, Alan Bromborsky <[email protected]> wrote:
>> Attached is the output of the simulation of a Foucault pendulum. The
>> question pertains to the output in red.  I have and expression for
>> \omega_{+} and \omega_{-} and I wish to do a symbolic Taylor expansion for
>> \omega_{+}-\omega_{-} in terms of \omega_{E}.  The problem is that when
>> \omega_{E}=0 the partial derivatives evaluate to nan since we are dividing
>> zero by zero.  Is there a way in sympy to apply the L'Hopital rule
>> symbolically or what should I do?
>
> So the coefficient in the Taylor expansion is such, that when you
> naively put 0 for your expansion variable \omega_E,
> you get 0/0? Yes, in that case you can try the "limit" command in
> SymPy. Let me know if it can do your expression.

Also, try the ".series()" command. It might work, as it is expanding
the expression inside out,
to avoid such problems.

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to