2021-02-11 06:58:59 +0200 | asked a question | TypeError: unsupported operand parent(s) for *: 'Integer Ring' and '<class 'NoneType'>' Hi all, I am attempting to plot a slope field for the function x' = -x + 80 - 40*sign(t-6) My Coding Looks Like: var('t,x') def sign(t): if t > 0: plot_slope_field(-x+80-40*sign(t-6), (t, 0, 5), (y,0,5)) BUT EVALUATING THE ABOVE GIVES THE ERROR TypeError: unsupported operand parent(s) for *: 'Integer Ring' and '<class 'nonetype'="">' Can anyone help me understand what I am doing wrong? |
2021-02-11 06:58:59 +0200 | asked a question | TypeError: unsupported operand parent(s) for *: 'Integer Ring' and '<class 'NoneType'>' I keep getting an error when wanting to plot a slope field My code looks like: And the ERROR is: |