MathGroup Archive 2008

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

Search the Archive

Re: Re: Package File for Different Mathematica Versions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90004] Re: [mg89984] Re: Package File for Different Mathematica Versions
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Thu, 26 Jun 2008 04:42:18 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <g3q7sh$arq$1@smc.vnet.net> <200806251031.GAA19048@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Which raises the question: How does one refer to the middle number in a 
version such as 6.0.3?

   $VersionNumber
6.
   $ReleaseNumber
3

What about the "0" between those two?

(After all, there have been versions such as 5.2, with the "sub-version" 
number being in the second position.)

Oliver Ruebenkoenig wrote:
> Hi Andrew
> 
> one way would be:
> 
> myFunction[ args_ ] /; $VersionNumber >= 6 := Module[
> {},
> args + 1
> ]
> 
> You can refine that by using the $ReleaseNumber


-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Inequality not documented in 6.0
  • Next by Date: Re: Happy Birthday Mathematica!
  • Previous by thread: Re: Package File for Different Mathematica Versions
  • Next by thread: Re: Package File for Different Mathematica Versions