Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Newbie question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18269] Newbie question
  • From: Alexander Sirotkin <demiurg at math.tau.ac.il>
  • Date: Thu, 24 Jun 1999 14:24:54 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Hi.

Can anybody here explain what mathematica wants from me ?
It's error messages (as always) does not contain any helpfull
information and there is no way (as far as I know) to at least
see where the error occured.

Source file attached...

thanks
(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 3.0,
MathReader 3.0, or any compatible application. The data for the notebook 
starts with the line of stars above.

To get the notebook into a Mathematica-compatible application, do one of 
the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the 
word CacheID, otherwise Mathematica-compatible applications may try to 
use invalid cache data.

For more information on notebooks and Mathematica-compatible 
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info at wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from 
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[      5158,        132]*)
(*NotebookOutlinePosition[      5794,        155]*)
(*  CellTagsIndexPosition[      5750,        151]*)
(*WindowFrame->Normal*)



Notebook[{

Cell[CellGroupData[{
Cell[BoxData[{
    \(diffEqM\  := \ \((\(M'\)[r]\  == \ 4*Pi*\((r^2)\)*\((rho[r])\)^2)\)\), 
    \(diffEqP\  := \ \((\(P'\)[r]\  == \ \(-G\)*M[r]*rho[r]/r^2)\)\), 
    \(diffEqT\  := \ 
      \((\(T'\)[r]\  == \ 
          \(-3\)*K[r]*L[r]*rho[r]/\((16*Pi*a*c*r^2*\((T[r])\)^3)\))\)\), 
    \(diffEqL\  := \ \((\(L'\)[r]\  == \ 4*Pi*r^2*rho[r]*Eps[r])\)\n\), 
    \(Eps[r_]\ \  := \ Eps\_0*rho[r]*\((T[r])\)^n\ \n\), 
    \(K\_bf[r_]\  := \ 
      \((4.34*10^25*g\_bf*\((1/t)\)*z*\((1 + x)\)*rho[r]/\((T[r])\)^\((1/2)\))
        \)\), 
    \(K\_ff[r_]\  := \ 
      \((3.68*10^22*g\_ff*\((1 - z)\)*\((1 + x)\)*rho[r]/\((T[r])\)^\((7/2)\))
        \)\), 
    \(K\_es[r_]\  := \ \((0.2*\((1 + x)\))\)\), 
    \(K[r_]\  := \ \((K\_bf[r]\  + \ K\_ff[r]\  + \ K\_es[r])\)\n\), 
    \(P\_r\  := \ \((1/3)\)*a*\((T[r])\)^4\), 
    \(P\_gas\  := \ \((k\_1*\((rho[r])\)^\((5/3)\))\)\), 
    \(K\_1\  := \ \((3.23*10^12*\((1 + x)\)^\((5/3)\))\)\n\), 
    \(x\  := \ 0.7\), 
    \(y\  := \ 0.02\), 
    \(z\  := \ 0.28\), 
    \(g\_bf\  := \ \(g\_\(ff\ \) := \ \(t\  := \ 1\)\)\n\), 
    \(diffEqs\  := 
      \ {diffEqM, \ \ diffEqP, \ \ diffEqT, \ diffEqL, M[0]\  == \ 0, \ 
        P[0]\  == \ P\_c, \ T[0]\  == \ T\_c, \ L[0] == 0}\), 
    \(diffEqFuncs\  := \ {M, \ P, \ T, \ L}\n\), 
    \(P\_c\  := \ 1\), 
    \(T\_c\  := \ 1\n\), 
    \(NDSolve[diffEqs, \ diffEqFuncs, \ {r, \ 0, \ 100}]\n\n\t\t\)}], "Input"],

Cell[BoxData[
    \(Compile::"cptype" \( : \ \) 
      "\!\(Times\) not supported for type \!\(None\); evaluation will use the \
uncompiled function."\)], "Message"],

Cell[BoxData[
    \(Compile::"cptype" \( : \ \) 
      "\!\(Times\) not supported for type \!\(None\); evaluation will use the \
uncompiled function."\)], "Message"],

Cell[BoxData[
    \(NDSolve::"ndnum" \( : \ \) 
      "The right-hand side of the differential equation does not evaluate to \
a number at \!\(r\) == \!\(1.`\)."\)], "Message"],

Cell[BoxData[
    RowBox[{"NDSolve", "[", 
      RowBox[{
        RowBox[{"{", 
          RowBox[{
            RowBox[{
              RowBox[{
                SuperscriptBox["M", "\[Prime]",
                  MultilineFunction->None], "[", "r", "]"}], "==", 
              \(4\ \[Pi]\ r\^2\ rho[r]\^2\)}], ",", 
            RowBox[{
              RowBox[{
                SuperscriptBox["P", "\[Prime]",
                  MultilineFunction->None], "[", "r", "]"}], "==", 
              \(-\(\(G\ M[r]\ rho[r]\)\/r\^2\)\)}], ",", 
            RowBox[{
              RowBox[{
                SuperscriptBox["T", "\[Prime]",
                  MultilineFunction->None], "[", "r", "]"}], "==", 
              \(-\(\(3\ L[r]\ rho[r]\ 
                      \((\(0.340000000000000035`\[InvisibleSpace]\) + 
                          \(4.50431999999999987`*^22\ Null\ 
                              rho[r]\)\/T[r]\^\(7/2\) + 
                          \(2.06584000000000012`*^25\ Null\ rho[r]\)\/\ at T[r])
                        \)\)\/\(16\ a\ c\ \[Pi]\ r\^2\ T[r]\^3\)\)\)}], ",", 
            RowBox[{
              RowBox[{
                SuperscriptBox["L", "\[Prime]",
                  MultilineFunction->None], "[", "r", "]"}], "==", 
              \(4\ \[Pi]\ r\^2\ rho[r]\^2\ Eps\_0\ T[r]\^n\)}], ",", 
            \(M[1] == 0\), ",", \(P[1] == 1\), ",", \(T[1] == 1\), ",", 
            \(L[1] == 0\)}], "}"}], ",", \({M, P, T, L}\), ",", 
        \({r, 1, 100}\)}], "]"}]], "Output"]
}, Open  ]]
},
FrontEndVersion->"X 3.0",
ScreenRectangle->{{0, 1024}, {0, 768}},
WindowSize->{705, 596},
WindowMargins->{{117, Automatic}, {Automatic, 23}}
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of 
the file.  The cache data will then be recreated when you save this file 
from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{

Cell[CellGroupData[{
Cell[1731, 51, 1407, 29, 509, "Input"],
Cell[3141, 82, 165, 3, 39, "Message"],
Cell[3309, 87, 165, 3, 39, "Message"],
Cell[3477, 92, 176, 3, 39, "Message"],
Cell[3656, 97, 1486, 32, 157, "Output"]
}, Open  ]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)



  • Prev by Date: O.D.E in Power Series
  • Next by Date: Re: quartiles
  • Previous by thread: Re: O.D.E in Power Series
  • Next by thread: Re: Newbie question