MathGroup Archive 2008

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

Search the Archive

Re: Package File for Different Mathematica Versions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90047] Re: Package File for Different Mathematica Versions
  • From: Oliver Ruebenkoenig <ruebenko at uni-freiburg.de>
  • Date: Fri, 27 Jun 2008 06:17:01 -0400 (EDT)
  • References: <g3q7sh$arq$1@smc.vnet.net> <200806251031.GAA19048@smc.vnet.net>

Hello Murray,

On Thu, 26 Jun 2008, Murray Eisenberg wrote:

> 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?

With the 0 is part of the $VersionNumber. Try it on an old version 5.2

SameQ[ 6.0, 6. ] is True

Oliver


>
> (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
>
>

Oliver Ruebenkoenig, <ruebenko AT uni-freiburg.de>


  • Prev by Date: RE: Vary PlotStyle in ListPlot ?
  • Next by Date: Re: documentation specification for Documentation Center
  • Previous by thread: Re: Re: Package File for Different Mathematica Versions
  • Next by thread: FullSimplify fails for very large numbers and powers