DSolve::dsvar NDSolve::dsvar NDSolveValue::dsvar ParametricNDSolve::dsvar ParametricNDSolveValue::dsvar RSolve::dsvar

Details

  • This message is generated when the indicated expression cannot be used as a variable in DSolve, NDSolve, or RSolve.
  • Most expressions other than numbers, strings, products, sums, and powers can be used as variables.
  • The variable is specified in the third argument of DSolve or NDSolve for ordinary differential equations.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[DSolve::dsvar].

Examples

Basic Examples  (2)

A product cannot be used as a variable:

The independent variable has been assigned a value previously:

The solution is to clear :