> This is actually a problem with how the symbolic functions/expressions > are handled. The find_root function cannot recognize that 1/z is a > function. This works: > > sage: z = 1/tan > sage: f = lambda x: z(x) > sage: find_root(f,1, 2) > 1.5707963267948968 > > and this: > > sage: find_root(z(x),1, 2) > 1.5707963267948968 > > I am working on making arithmetic with function objects more intuitive, > and free of these kinds of problems as a part of the effort to use > ginac as a basis for symbolics. This might result in some changes to > the user interface for such things, but hopefully there will be less > problems of this kind. >
Thanks for the workaround idea. Actually, I was just reporting it as a ticket, which hopefully will be resolved (as you say) with ginac conversion. I am very excited about more robust symbolic behavior, because pedagogically one likes to reach students where they are at - and most freshmen nonmajors are definitely only at the math-as-symbolic- manipulation stage, yet should be able to use Sage as intuitively as possible. Thanks for your (and others'!) work on this! - kcrisman --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---