Ask Your Question

SageOfSixPaths's profile - activity

2017-10-21 12:58:57 +0100 received badge  Editor (source)
2017-10-21 11:37:38 +0100 answered a question Solving systems of equations always returns [ ]

It seems defining the variables as variables would solve the problem.

f1,f2,f3,a,b,c,d = var('f1,f2,f3,a,b,c,d');
eq1 = f1 == a + b + f2;
eq2 = 2*f2 == c + d + f1;
eq3 = f3 == f1 + f2;
solve([eq1,eq2,eq3],f1,f2,f3);

This would give the answer @cacl314 mentioned

2017-10-21 11:37:38 +0100 answered a question Numerically Solve a Symbolic Equation

Hello,

I tried a different way of doing the same. In the code below, eq1 is the circle and eq2 is the parabola. You'll find the solution you are looking for.

x, y = var('x, y');
eq1 =  x^2 + y^2 == 16; show(eq1);
eq2 = y == 1/4*x^2-1.28; show(eq2);
eqs = [eq1, eq2];
sol = solve(eqs, x, y); show(sol);

Hope this helped.