Re: Problem with finktion with four variables
- To: mathgroup at smc.vnet.net
- Subject: [mg31650] Re: Problem with finktion with four variables
- From: "Ersek, Ted R" <ErsekTR at navair.navy.mil>
- Date: Fri, 23 Nov 2001 05:46:19 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Manual had the following problem: ------------------- If I define this \!\(test[\(v\_0\) _, \ \[Gamma]_, \ H_, \ m_] := \((\(\(-m\)*H\)\/\[Gamma]\^2*Cosh[ArcSinh[v\_0*\[Gamma]\/H]] - m\/\[Gamma]*ArcSinh[v\_0*\[Gamma]\/H]*v\_0)\)\) and then try to calculate test[14,500,100,80] nothing happens! ------------------------ The problem is that Mathematica doesn't allow you to use a subscripted symbol as a variable unless you take special steps to allow this. Change each occurance of (Subscript[v,0] ) to (v0) and it will work. A year or two ago there was a long an interesting discussion about this in this group. You can read a summary of that discussion by looking up Subscript at my website (URL below). ----------- Regards, Ted Ersek Check Mathematica Tips, Tricks at http://www.verbeia.com/mathematica/tips/Tricks.html