Я хочу разделить рациональную функцию на num и denom:
т.е. x * y / (2 * z) ===> n = x * y d = 2 * z
вот мой код:
func = input('Enter the function: ');
[n d] = numden(func);
disp(n);
>> test
Enter the function: x*y/(2*z)
??? Error using ==> input
Undefined function or variable 'y'.
Error in ==> test at 1
func = input('Enter the function: ');