|
Hallo Mathematica-Freunde, wir benutzen schon recht lange das Nodal-Paket von Macallan Conculting. Bisher haben wir unter Mathematica 2.2 (UNIX, SUN-Solaris) gearbeitet und haben letzte Woche die Version auf Mathematica 3.0 umgestellt. Das entsprechende Nodal-Paket kann nun nicht mehr eingelesen werden. Schuld daran, scheint die folgende im Paket definierte Funktion zu sein: Unter Version M 2.2 liefert folgendes keine Fehlermeldung: ######################################################################### Mathematica 2.2 for Solaris Copyright 1988-93 Wolfram Research, Inc. -- Open Look graphics initialized -- In[1]:= NodalPlot[x:{{_,_,_..}..},opts___Rule] := ( (* converts columns of data to lists of pairs Copyright 1990-92 Alfred Riddle dba Macallan Consulting Date: 2/6/92 *) Block[ {tmp,xTmp,yTmp,data}, tmp = Transpose[x]; (* data rows *) xTmp = tmp[[1]]; yTmp = Rest[tmp]; data = Transpose[{xTmp,#}]& /@ yTmp; NodalPlot[data,opts] ] ) General::spell1: Possible spelling error: new symbol name "yTmp" is similar to existing symbol "xTmp". In[2]:= ######################################################################### Dagegen erhalte ich bei 3.0 eine Fehlermeldung !!!: ######################################################################### Mathematica 3.0 for Solaris Copyright 1988-96 Wolfram Research, Inc. -- X11 windows graphics initialized -- -- Motif graphics initialized -- In[1]:= NodalPlot[x:{{_,_,_..}..},opts___Rule] := ( (* converts columns of data to lists of pairs Copyright 1990-92 Alfred Riddle dba Macallan Consulting Date: 2/6/92 *) Block[ {tmp,xTmp,yTmp,data}, tmp = Transpose[x]; (* data rows *) xTmp = tmp[[1]]; yTmp = Rest[tmp]; data = Transpose[{xTmp,#}]& /@ yTmp; NodalPlot[data,opts] ] ) Syntax::sntxf: "NodalPlot[x:{{_,_,_.." cannot be followed by "}..},opts___Rule] :=". In[1]:= ######################################################################### Wer kann mir verraten, warum dieses so ist ????????????????????? Vielen Dank, Torsten. ______________________________________________________________________ |##################################################################### |# |# |# Dr.-Ing. Torsten Harnisch |# |# Technical University of Ilmenau |# |# Dept. of the Fundamentals and Theory of Electrical Engineering |# |# P.O.Box 100565 |# |# D-98684 Ilmenau |# |# Germany |# |# |# |# ---------------------------------------------------------------- |# |# |# |# room : H2526 |# |# phone : (+49) 3677 / 691185 |# |# fax : (+49) 3677 / 691152 |# |# email : harnisch@XXXXXXX.de |# |# internet : http://nor.e-technik.tu-ilmenau.de |# |# |# |#__________________________________________________________________|# |##################################################################### |