[sage-support] simplify more quickly?

2019-04-01 Thread Andreas Schuldei
i had sage perform grad() on a scalar field and the calculation was really slow. grad() consists of several steps and apparently the derivative() is not the issue, but rather the simplification of the resulting terms thereafter. The process is described here: http://doc.sagemath.org/html/en/referen

[sage-support] Simplify symbolic equation based on assumptions?

2018-12-04 Thread Thomas Dehaeze
I'm using Sage since few days ago. I'm struggling solving some inequalities with constraints. I have two questions that may be related. First, why do we obtain such result in the following code? var('x, y') > assume(x, 'real', y, 'real') > assume(x>0, y>0) > assume(x-y < 0) >

Re: [sage-support] simplify

2016-12-29 Thread Michael Orlitzky
On 12/29/2016 04:48 AM, Ingo Dahn wrote: > > According to tab completion SageCell doesn't seem to support any other form > of *simplify*. Is there any strategy to combine Sage commands in order to > simplify rational function expressions? Plain "simplify" won't do much on its own. I guess it's

[sage-support] simplify

2016-12-29 Thread Ingo Dahn
Hi, I am not sure what *simplify *does. For example q=(x^2+4*x+4)/(x+2)^2 simplify(q) doesn't do any simplification, while factor(q) yields 1. According to tab completion SageCell doesn't seem to support any other form of *simplify*. Is there any strategy to combine Sage commands in order to s

[sage-support] simplify trigonomtric problem

2016-09-25 Thread Joan Pujol
hello, i was trying to simplify a trigonometric expression and it didn’t work, can you help me please? my computer uses the last IOS version A=cos(x)^5+sin(x)^4+2*cos(x)^2-2*sin(x)^2-cos(2*x) A.simplify_full() Traceback (click to the left of this block for traceback) ... RuntimeError: E

[sage-support] Simplify square root of square

2015-02-27 Thread Paul Royik
What is the way to consistently simplify square roots of squares? Examples: sqrt((x+1)^2) - > x+1 sqrt(cos(4*x)+1) -> sqrt(2)cos(2x) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from

[sage-support] Simplify number

2014-05-29 Thread SiL588 .
Hi, i tried to simplify a number doing this: m1.simplify() but the output is AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute 'simplify' What does it mean? What did I do wrong? I declared m1 like this: m1 = var('m1') thank you very much! -- You received this message

[sage-support] Simplify code generated by sympy for complex expressions

2014-05-21 Thread stuff
Hi all, I use sage to solve a system of equations describing and electronical filter. I then use sympy and codegen to generate c code that I use in my main code written in c. This works almost like a charm, expept that it produces files that are 100s of kb long. Looking into the expressions the

[sage-support] Simplify expression with hyperbolic functions

2014-03-19 Thread m sigar
How do I make SAGE recognize t=var('t', domain='real') log(cosh(t)+sinh(t)) as t -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@goo

[sage-support] Simplify an expression containing a derivative

2011-09-14 Thread Michael Orlitzky
I pulled an expression out of a piecewise function that contains some derivatives. The full_simplify() method seems unhappy; can anyone decipher this error or think up a workaround? sage: load('recovery.py') sage: r = ZZ(3) sage: t = SR.symbol('t', domain='real') sage: x = SR.symbol('x', domain=

[sage-support] simplify problem

2011-07-05 Thread robin hankin
Hi. I am having difficulty using sage to manipulate surds. Consider: a = 1 + sqrt(2) + sqrt(3) b= (a^2).expand() c = sqrt(b) Then 'y' should be equal to 'a'. But, given 'y' I cannot make sage return the simple form. Trying y.simplify_full() doesn't do what I want. How do I make sage recogni

Re: [sage-support] simplify and sqrt

2011-01-26 Thread Minh Nguyen
Hi, On Wed, Jan 26, 2011 at 6:41 PM, wrote: > sage: sqrt(2)*sqrt(3) > sqrt(2)*sqrt(3) > sage: sqrt(2)*sqrt(3)-sqrt(6) > sqrt(2)*sqrt(3)-sqrt(6) > > I would expect results sqrt(6) and 0... In the above Sage session, you declared two symbolic expressions. So it is possible to use methods defined

Re: [sage-support] simplify ans sqrt

2011-01-26 Thread Francois Maltey
Loďc a écrit : Hello list, Version: sage 4.6.1 I'm quite a newbie with Sage but I'm really impressed this powerful software. Since an hour, I'm on a stupid problem: sage: sqrt(2)*sqrt(3) sqrt(2)*sqrt(3) sage: sqrt(2)*sqrt(3)-sqrt(6) sqrt(2)*sqrt(3)-sqrt(6) Test : sage (sqrt(6)).radical_simp

[sage-support] simplify ans sqrt

2011-01-25 Thread Loïc
Hello list, Version: sage 4.6.1 I'm quite a newbie with Sage but I'm really impressed this powerful software. Since an hour, I'm on a stupid problem: sage: sqrt(2)*sqrt(3) sqrt(2)*sqrt(3) sage: sqrt(2)*sqrt(3)-sqrt(6) sqrt(2)*sqrt(3)-sqrt(6) I would expect sqrt(6) and 0... I try with the command

[sage-support] simplify and sqrt

2011-01-25 Thread xlogo
Hello, Version: sage 4.6.1 I'm quite a newbie with Sage but I'm really impressed by this powerful software. Since an hour, I'm on a stupid problem: sage: sqrt(2)*sqrt(3) sqrt(2)*sqrt(3) sage: sqrt(2)*sqrt(3)-sqrt(6) sqrt(2)*sqrt(3)-sqrt(6) I would expect results sqrt(6) and 0... I try with the

Re: [sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread Ajay Rawat
dear Stefan first of all sin(pi/2) = 1.0 to understand the problem arises in your computation u should read about floating point arithmetic and about how numbers are stored in computers. check this very good article. http://docs.sun.com/source/806-3568/ncg_goldberg.html i hope this may clarify y

Re: [sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread Laurent
stefan.o...@gmail.com ha scritto: Hello, I have a term t that I simplify with t.simplify_trig(). Parts of the result look something like this: 65*sin(0.500*pi)*sin(x2)*cos(x3)*sin(x5)+... My limited math understanding tells me that sin(0.5*pi) is zero, sin(pi/2)=0, that's rign

[sage-support] Simplify trig and sin(0.500000000000000*pi)

2010-03-16 Thread stefan.o...@gmail.com
Hello, I have a term t that I simplify with t.simplify_trig(). Parts of the result look something like this: 65*sin(0.500*pi)*sin(x2)*cos(x3)*sin(x5)+... My limited math understanding tells me that sin(0.5*pi) is zero, therefore the term shouldn't be there. Is there a way to let sage

[sage-support] Simplify matrix with variables

2010-03-13 Thread stefan.o...@gmail.com
Hello there, I have a little kinematic project running. I have a matrix with Denavit-Hartenberg parameters for each joint. See http://upload.wikimedia.org/math/6/e/3/6e3a9d7ad118c01e0e8b06cdc6d0205f.png In my case everything except theta is constant. I need to multiply this matrix with itself for

[sage-support] simplify using an assumption

2010-01-22 Thread Michael Beeson
after declaring variables make these definitions sage: a = Z - Z^-1 sage: b = L - L^-1 sage: c = Z^2L-Z^-2L^-1 sage: f = (p*a + q*b + r *c) *a + (n*a + m *b + l*c) * a*b Now I can tell it assume(Z^3 * L^2 == -1)but I can't get it to use that assumption in something like simplify(expand(Z^3*

[sage-support] simplify

2009-09-11 Thread lastras
Sage is unable to simplify the following expression to zero: log( (a-1)/a ) - log(a-1) + log(a) I have tried assuming a>1 but that does not work. Help will be appreciated. Tanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegr

[sage-support] Simplify an expression

2009-07-20 Thread Rolandb
Hi, How to simplify an expression if you have some known relations (equalities)? Example: relation: 0 = a*x1^2 + b*x2^2 expression = (a*x1^2 + b*x2^2)*y1+b*y2^3 Given the relation, the expression could be simplified to b*y2^2. But how in Sage? Tnx in advance. Rolandb --~--~-~--~~---

[sage-support] simplify arctan

2009-02-28 Thread Loïc
Hello arctan(2)+arctan(5)+arctan(8)=5*pi/4. How can I simplify arctan(2)+arctan(5)+arctan(8) to get this value? Thanks in advance Loïc --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Simplify

2008-12-25 Thread H.S.Rai
Can't simplify((-2*sqrt(2)*I - 2)/2) result in -1*sqrt(2)*I - 1 What I found is that it remain unchanged. -- H.S.Rai --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-supp

[sage-support] simplify with respect to side relations

2008-10-08 Thread Alex Raichev
Hi all: Is there a Sage command similar to Maple 11's 'simplify/siderels' which simplifies an expression with respect to given relations? I couldn't find mention of such a command in the Sage documentation. For more details, here's the Maple 11 help documentation. Alex =