ti basic - Why won't finding polynomial whole number routes work? -
ti basic - Why won't finding polynomial whole number routes work? -
so want find me roots of polynomial. however, everytime run it, never gives me roots, if utilize obvious 1 2x-2. why won't work?
input "degree?",θ disp "left right" disp "coefficients" 1→v for(z,0,θ) input q→r p→q o→p n→o m→n l→m k→l j→k i→j h→i g→h f→g e→f d→e c→d b→c a→b if v=1 a→s v=0 end end for(t,–a,a) for(u,–w,w) if t≠0 u/t→x rx+q→y yx+p→z zx+o→y yx+n→z zx+m→y yx+l→z zx+k→y yx+j→z zx+i→y yx+h→z zx+g→y yx+f→z zx+e→y yx+d→z zx+c→y yx+b→z if z=0 disp x end end end prgmreset
reset resets variable values. wrong it?
request: have absolutely no thought operation working off of, if please state that
observation: you're using lot of variables haven't had value assigned them or cleared, can see you're trying create 'stream' of variables work with, if without clearing variables ahead of time create problems in later calculations.
coding recommendations:
you state v=0, nil in context, instead of assigning value you can alter 'if t≠0' 'if t' in 3rd 'for()' statement, "w" undefined in code. you can alter 'if z=0:then:disp x:end', near end of code, 'if not(z:disp x' move prgmreset top of program ti-basic
Comments
Post a Comment