4
$\begingroup$

I am using Mathematica 9.0 on Ubuntu.

I tried the first example from this documentation page, but it returns unevaluated:

Needs["DifferentialEquations`NDSolveProblems`"];
Needs["DifferentialEquations`NDSolveUtilities`"];

NDSolve`ImplicitRungeKuttaGaussCoefficients[4, 50]

(* ==> NDSolve`ImplicitRungeKuttaGaussCoefficients[4, 50] *)

What is the problem ?

$\endgroup$
9
  • 1
    $\begingroup$ You may have a broken installation. First restart Mathematica and try again. If that doesn't solve the problem, please evaluate $Path in a newly started Mathematica instance and update your question with the result. Also post the precise error message you get when you evaluate these Needs. $\endgroup$
    – Szabolcs
    Commented Dec 6, 2013 at 18:41
  • $\begingroup$ Advanced thanks for post. But, I don't get any error after proccessing Needs. $\endgroup$
    – drxy
    Commented Dec 6, 2013 at 20:21
  • $\begingroup$ And my $Path results are as follows "/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Links", \ "/root/.Mathematica/Kernel", "/root/.Mathematica/Autoload", \ "/root/.Mathematica/Applications", "/usr/share/Mathematica/Kernel", \ "/usr/share/Mathematica/Autoload", \ "/usr/share/Mathematica/Applications", ".", "/root", $\endgroup$
    – drxy
    Commented Dec 6, 2013 at 20:22
  • $\begingroup$ "/usr/local/Wolfram/Mathematica/9.0/AddOns/Packages", \ "/usr/local/Wolfram/Mathematica/9.0/AddOns/LegacyPackages", \ "/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Autoload", \ "/usr/local/Wolfram/Mathematica/9.0/AddOns/Autoload", \ "/usr/local/Wolfram/Mathematica/9.0/AddOns/Applications", \ "/usr/local/Wolfram/Mathematica/9.0/AddOns/ExtraPackages", \ "/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Kernel/Packages", $\endgroup$
    – drxy
    Commented Dec 6, 2013 at 20:23
  • $\begingroup$ "/usr/local/Wolfram/Mathematica/9.0/Documentation/English/System", \ "/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Data/ICC"} $\endgroup$
    – drxy
    Commented Dec 6, 2013 at 20:23

1 Answer 1

7
$\begingroup$

This example works in version 8, but in version 9 it does indeed fail to evaluate.

I did a little bit of spelunking to find out why. It turns out that in version 9 this function (as well as related ones) takes a third argument. I believe this third argument is just a symbol that will be used as the head in any messages that might be reported. Maybe this change was done because version 9 has four different NDSolve-related functions (compared to v8): NDSolve, NDSolveVaule, ParametricNDSolve and ParametricNDSolveValue.

The simple workaround is to just pass NDSolve as the third argument:

NDSolve`ImplicitRungeKuttaGaussCoefficients[4, Infinity, NDSolve]

(* ==> {{{1/4, 1/12 (3 - 2 Sqrt[3])}, {1/12 (3 + 2 Sqrt[3]), 1/4}}, {1/2, 1/2}, {1/6 (3 - Sqrt[3]), 1/6 (3 + Sqrt[3])}} *)
$\endgroup$
3
  • $\begingroup$ Very very very much thanks to solve my problem. You approach my mistakes very kindly. So thanks again. $\endgroup$
    – drxy
    Commented Dec 7, 2013 at 13:31
  • $\begingroup$ @drxy In newer versions (now sure when, at least since v12.3) the 2-argument form is again allowed. $\endgroup$
    – xzczd
    Commented Nov 5, 2022 at 3:54
  • $\begingroup$ Dear @xzczd. Thank you very much. $\endgroup$
    – drxy
    Commented Nov 5, 2022 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.