Borrar filtros
Borrar filtros

How to factor symbolic equations

6 visualizaciones (últimos 30 días)
Ryan Magnotte
Ryan Magnotte el 10 de Nov. de 2021
Respondida: Chunru el 11 de Nov. de 2021
I'm trying to factor a symbolic equation but I keep getting errors.
the code is basically this
syms c
SE1=c^2-2*c+1;
SQ1=SE1==25;
factor(SQ1)
and the error I get is
Error using mupadengine/feval_internal
Invalid argument.
Error in sym/factor (line 92)
l = feval_internal(symengine, 'factor', xsym, opt);
I can find nothing online about this issue so either I'm missing something obvious or I'm not searching with the right words.

Respuesta aceptada

Chunru
Chunru el 11 de Nov. de 2021
syms c
SE1=c^2-2*c+1;
SQ1=SE1==25;
% you can factor a symbolic function but not an equation
factor(SE1)
ans = 
factor(SE1-25)
ans = 

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by