Solve 2 equations in 2 unknowns in octave?

1k Views Asked by At

I have the following 2 equations in 2 unknowns $(x,t)$:

$(t*x-20)^4 = 100*((t*x-20)^2-t^2(150^2-x^2)) $

$(t*\sqrt{(150^2-x^2)}+70) = ((t*x)+30)*tan(arctan(7/3)+36*t)$

I tried solving them using octave online using the following code:

syms x t  
[X, Y] = solve(((t*x)-20)^4 == 100*(((t*x)-20)^2-(t^2)*(150^2-x^2)), (t*sqrt((150^2)-x^2) + 70) == ((t*x) + 30)*tan(atan(7/3) + 36*t), x, t)

but unfortunately the following error occurred:

warning: passing floating-point values to sym is dangerous, see "help sym"

warning: called from double_to_sym_heuristic at line 50 column 7 sym at line 373 column 13 plus at line 63 column 5

error: Python exception: PolynomialError: x**(-10) contains an element of the generators set occurred at line 21 of the Python code block: d = sp.solve(eqs, *symbols, set=True)

error: called from python_cmd at line 179 column 7 solve at line 176 column 9

Any help is appreciated.