Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Format.m , FortranAssign : weird identifiers for temporary variables

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60959] Format.m , FortranAssign : weird identifiers for temporary variables
  • From: Nicolas Girard <nicolas.girard at strasbourg.fr>
  • Date: Wed, 5 Oct 2005 02:27:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi all,
I'm delighted the Format.m package (1) exists, I've dreamt for such a
package & wish I could have discovered it long before...

(1) http://library.wolfram.com/infocenter/MathSource/60/

unfortunately I can't get it to produce an optimized code with proper
identifiers for temporary variables. Instead of t1,t2,... I get for
instance $$1000, $$1001,...

More specifically, although I specify this option: AssignTemporary ->
{"t", Sequence} evaluating

zz = {x -> a/(b c), y -> d/(c e)};
FortranAssign[Evaluate[First /@ zz], Last /@ zz, AssignOptimize -> True]

gives

$$13506=1/c
x=(a*$$13506)/b
y=(d*$$13506)/e

instead of

t1=1/c
x=(a*t1)/b
y=(d*t1)/e

Does anybody know what to do in such a situation ?

Thanks very much in advance,
cheers,
Nicolas


  • Prev by Date: Problem with D and Abs
  • Next by Date: Re: Pure Function for String Selection
  • Previous by thread: Re: Problem with D and Abs
  • Next by thread: Re: Format.m , FortranAssign : weird identifiers for temporary variables