Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-15 Thread Enrique Artal
Thanks! I did not expect a particular simplification of the function; the problem is that the given simplification caused problems. This function appeared as a factor in the computation of the curvature of some spatial curve. El domingo, 15 de enero de 2017, 15:50:06 (UTC+1), Michael Orlitzky

Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-15 Thread Michael Orlitzky
On 01/14/2017 03:42 AM, Enrique Artal wrote: > This is true. The problem is that if not used, simple expressions keep to > be too much complicated. Is there any compromise? > There is simplify_full() which should be safe for all expressions, and simplify_real() that assumes everything is real. T

Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-14 Thread Enrique Artal
This is true. The problem is that if not used, simple expressions keep to be too much complicated. Is there any compromise? El viernes, 13 de enero de 2017, 21:08:16 (UTC+1), Michael Orlitzky escribió: > > On 01/13/2017 05:12 AM, Enrique Artal wrote: > > I would like to know how to handle with

Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-13 Thread Michael Orlitzky
On 01/13/2017 05:12 AM, Enrique Artal wrote: > I would like to know how to handle with this issue. Consider a function > f=sqrt(cos(x)^3 - 3*cos(x)^2 - cos(x) + 6). It is possible to deal with > this function for standard procedures like numerical_integral in (-1,1). > If one considers f.canonicali

[sage-support] simplifying radicals of trigonometric expressions

2017-01-13 Thread Enrique Artal
I would like to know how to handle with this issue. Consider a function f=sqrt(cos(x)^3 - 3*cos(x)^2 - cos(x) + 6). It is possible to deal with this function for standard procedures like numerical_integral in (-1,1). If one considers f.canonicalize_radical() it is presented as sqrt(cos(x)^2 - c