Skip to main content
7-Bedrock
April 25, 2023
Solved

I am getting error Argument outside of solution interval

  • April 25, 2023
  • 1 reply
  • 1318 views

Hello Experts,

 

What does Argument outside of solution interval error means and how to overcome this one? Also within Odesolve when there is no variable used for range variable still the plot can be plotted using the equation function. How to find out what does k subsides in this worksheet 

Best answer by Werner_E

See my remarks in the attached file

 

According plotting without a range: As long as you are not using units you may use Mathcads so called Quickplot feature where a plot of a function can be done without specifying a variable (range) for the abscissa values. Mathcad then chooses the number of values used for the plot as it think its needed and by default covers the range from -10 to 10 (you can override this by explicitly type in different end values in the placeholders of the plot axis.

But you may have more control if you define a range to be used for the abscissa values.

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 26, 2023

See my remarks in the attached file

 

According plotting without a range: As long as you are not using units you may use Mathcads so called Quickplot feature where a plot of a function can be done without specifying a variable (range) for the abscissa values. Mathcad then chooses the number of values used for the plot as it think its needed and by default covers the range from -10 to 10 (you can override this by explicitly type in different end values in the placeholders of the plot axis.

But you may have more control if you define a range to be used for the abscissa values.

7-Bedrock
April 27, 2023

Thank you for the information but I did not understand Where did the “(k)” come from in the OdeSolver example where X_gf(k) works for the plot but could not find any “k” range variable also what type of quantity is the OdeSolver result since the column vector of results contains items that are not variables, not vectors and not range variables. Could you please help

25-Diamond I
April 27, 2023

The odesolver does not return a vector of values but what it returns is a function (which it internally creates by interpolating the values of a calculated vector).

So you can use these functions with whatever named argument you like. It has not to be "k".