Skip to main content
7 events
when toggle format what by license comment
Sep 29, 2020 at 12:30 history closed Michael E2
m_goldberg
Dunlop
MarcoB
AsukaMinato
Duplicate of General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?
Sep 23, 2020 at 15:55 review Close votes
Sep 29, 2020 at 12:30
May 15, 2019 at 7:50 comment added Roman Please read this tutorial on how to differentiate := and =. It will help you in other contexts too.
May 15, 2019 at 5:34 answer added Carl Woll timeline score: 1
May 15, 2019 at 4:21 comment added Emad Raslan It works for this sample, but it does not twork for more complicated code which contains many functions.
May 15, 2019 at 3:55 comment added Bill := says to evaluate the right hand side later when the function is called. Next df[1,2,0.2,0.3] sets x equal to 1 and y equal to 2. Next evaluate the right hand side doing D[f[1,2],1] and you don't know how to differentiate with respect to 1. Same for 2. If you change the := to = in your definition of the df function and you clear all definitions or restart Mathematica then the right hand side is evaluated before df[1,2..2,.3] and the error message goes away. But you must be very careful with this to be certain that the answer is correct.
May 15, 2019 at 3:20 history asked Emad Raslan CC BY-SA 4.0