Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12194 > unrolled thread

Subscript in parameter names

Started byper@RQNNE.invalid (Per Rønne)
First post2012-10-27 03:47 +0000
Last post2012-10-27 03:47 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Subscript in parameter names per@RQNNE.invalid (Per Rønne) - 2012-10-27 03:47 +0000

#12194 — Subscript in parameter names

Fromper@RQNNE.invalid (Per Rønne)
Date2012-10-27 03:47 +0000
SubjectSubscript in parameter names
Message-ID<k6flgm$6uc$1@smc.vnet.net>
You define functions in Mathematica like this:

c[a_, b_]:= ^2a^6+b^6

Giving Sqrt[a^2+b^2]

But how will you define a function with a parameter with a subscript,
like

L[L^_0^ _,v]:=L^_0*^21-^/v^6 c^6

Giving L[L0,v]:= L0*Sqrt[1-v^2/c^2]

Except that L0 should be with a real subscript.

In this example, c is 299,792,458 m/s, L0 the proper length in the
velocity direction of an object with speed v relative to the observed
lenght L from an intertial system with speed 0.
-- 
Per Erik Rønne
http://www.RQNNE.dk
Errare humanum est, sed in errore perseverare turpe

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web