I have the following script:
(%i45) g(x):=(2*x^4-5*x^3+4);
(%o45) g(x):=2*x^4-5*x^3+4
(%i46) dg(x):= diff(g(x), x);
(%o46) dg(x):='diff(g(x),x,1)
(%i49) a: find_root(dg(x), x, 1, 5);
(a) 1.875
(%i55) g(a);
(%o55) -4.23974609375
(%i54) b: g(a);
(b) g(1.875)
As you see, a is a variable, and it is assigned the numeric output of find_root(...). g(a) outputs the value of g(x) at a. However, when I try to assign that number to b, b is assigned the function g(1.875).
How can I get b to accept the numeric output?