Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2012

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

Search the Archive

Subscript in parameter names

  • To: mathgroup at
  • Subject: [mg128515] Subscript in parameter names
  • From: per at RQNNE.invalid (Per Rønne)
  • Date: Fri, 26 Oct 2012 23:47:31 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Reply-to: spam at (Per Rønne)

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,

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
Errare humanum est, sed in errore perseverare turpe

  • Prev by Date: Re: Fourier Transform of a "step" function
  • Next by Date: Second derivatives
  • Previous by thread: Re: Fourier Transform of a "step" function
  • Next by thread: Re: Subscript in parameter names