# Solve equations with sin(x)

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

Solve equations with sin(x)

*sin(x)+y==5,sin(x)==y] (It's so easy!)and it just gives back: [sin(x)==y,y+4*sin(x)==5]. Can you help me?

2

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

0

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

```
solve(5-4*sin(x)==sin(x),x)
```

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.

On sagenb.org 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

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

Seen: **147 times**

Last updated: **Aug 04 '14**

Sage won't solve a symbolic equation unless it is in a specific form.

obtain explicit solutions from "solve"

A combination of commands partial_fraction(x) and coefficient(x,n)

Solve for r in (x-x1)^2 + (y-y1)^2 == (r+r1)^2 ?

Creating a symbolic matrix in a loop and then substituting values in for the variables?

Missing solution in homogeneous equation

Comparing even powers of $i$ with 1

Plotting point when coordinate involves symbolic and numerical values

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

What command did you give?