Substitute all solutions of a give system of equations.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Alessio Nava
el 23 de Abr. de 2013
Comentada: Radu Trimbitas
el 10 de Sept. de 2014
I would like to substitute all the solutions of a system of equations in the original system. For example I would like to do something like this in Mupad:
eqs:=[x^2-1,y^2-1]
solutions:=solve(eqs)
and then create a matrix which contains all the couples of solutions; I tried with evalAt and subs combined with map and op but had no luck.
Any suggestions?
1 comentario
Radu Trimbitas
el 10 de Sept. de 2014
The idea is to consider the solution as a list and to evaluate the equation for the elements given in that list. The Mupad code is
eqs:=[x^2-1,y^2-1]:
solve(eqs,{x,y}):
zz:=op(%):
f:=l->(eqs)|l:
map([zz],f)
Respuesta aceptada
Azzi Abdelmalek
el 23 de Abr. de 2013
syms x y
eqs=[x^2-1,y^2-1]
sol=solve(eqs)
M=[sol.x sol.y]
1 comentario
Más respuestas (1)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!