Ask Your Question

Solve equations with sin(x)

asked 2014-07-31 20:50:32 -0500

wasa gravatar image

Hi. I want to know why sage can't solve the euqations: [4sin(x)+y==5,sin(x)==y] (It's so easy!)and it just gives back: [sin(x)==y,y+4sin(x)==5]. Can you help me?

edit retag flag offensive close merge delete


What command did you give?

rws gravatar imagerws ( 2014-08-01 11:51:38 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-04 02:32:54 -0500

Congratulations, you have found a bug! I have reported it at

edit flag offensive delete link more

answered 2014-08-02 11:05:49 -0500

dazedANDconfused gravatar image

Solving equations is done through the solve command, which is documented here. I went to a Sage cell server and typed in:


and got an answer: [x == 1/2*pi]. Of course, since the trig functions are periodic there are an infinite number of solutions.

Since you haven't given the code that resulted in the output you describe, it's impossible for me to know what went wrong. Always provide your code; it makes it easier to diagnose what is wrong.

edit flag offensive delete link more


On using var('x,y'); solve([y==sin(x),y+4*sin(x)==5],x,y) I get [y == sin(x), y + 4*sin(x) == 5] as a solution gravatar ( 2014-08-03 06:32:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-07-31 20:50:32 -0500

Seen: 145 times

Last updated: Aug 04 '14