MATLAB: An actual non-answer from solve

simultaneous equationsSymbolic Math Toolbox

The following code results in a an empty sym. Would anyone care to comment on (a) why no solution? and (b) how to actually get a solution from the symbolic math toolbox?
reset(symengine);clear all;
syms x lambda A k positive;
syms eta;
lambda = sym(1);
k = sym(2*pi);
eq1 = A*sin(eta)-10;
eq2 = A*sin(k*lambda/6 + eta)-20;
eq3 = A*sin(k*5*lambda/12 + eta);
% try to solve
b=solve(eq1,eq2,eq3,A,eta,k)
% --> answer is [ empty sym ]
subs(eq1,{A,eta,k},{20,pi/6,2*pi/lambda})
subs(eq2,{A,eta,k},{20,pi/6,2*pi/lambda})
subs(eq3,{A,eta,k},{20,pi/6,2*pi/lambda})

Best Answer

You force k to equal 2*pi; how do you expect it to solve for any other value?
Related Question