How can I define f(x) = x/x in MATLAB (Symbolic Computation)
Mostrar comentarios más antiguos
I try with these commands
x = sym('x');
f(x) = sym('f(x)');
f(x) = x/x;
and
f(x) = sym('x/x');
, and both of them produce
f(x) = 1
(yes.. for every real x included 0)
The question is how I can avoid the pre-evaluation in the command "sym", or there exists another way to handle this problem.
Thank you very much!
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 21 de Mayo de 2014
1 voto
MuPad can handle a function like x/x without automatic simplification. I'm not sure why you want this though. Why do you care about it, is it just for display or something else?

1 comentario
epsilonxe
el 21 de Mayo de 2014
Categorías
Más información sobre Common Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!