|
[Date Index]
[Thread Index]
[Author Index]
Re: Format.m , FortranAssign : weird identifiers for temporary variables
- To: mathgroup at smc.vnet.net
- Subject: [mg60989] Re: Format.m , FortranAssign : weird identifiers for temporary variables
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Fri, 7 Oct 2005 03:37:36 -0400 (EDT)
- Organization: Uni Leipzig
- References: <di1lfs$2on$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
the brute force would be to transfrom the
expression into a string and
use StringReplace[] to the created variables.
Regards
Jens
"Nicolas Girard" <nicolas.girard at strasbourg.fr>
schrieb im Newsbeitrag
news:di1lfs$2on$1 at smc.vnet.net...
|
| 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:
Re: Problem with D and Abs
Next by Date:
Re: Problem with D and Abs
Previous by thread:
Re: Format.m , FortranAssign : weird identifiers for temporary variables
Next by thread:
graphs
|