How can I define f(x) = x/x in MATLAB (Symbolic Computation)
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 21 Mai 2014
1 Stimme
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 Kommentar
epsilonxe
am 21 Mai 2014
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!