|
From: Arun P. <ape...@lb...> - 2011-04-01 07:01:41
|
Hi
On 03/31/2011 10:04 PM, sfeam (Ethan Merritt) wrote:
> On Thursday, March 31, 2011, Arun Persaud wrote:
>> [...]
>> A=f("t1")
>> B=f("t2")
>>
>> plot @A,g(x),@B,g(x)
>>
>> without using macros?
>
> I'm not clear on the significance of using A and B
> as opposed to directly calling f().
hmm, f() is just a string that needs to be evaluated and eval f(...)
didn't work inside the plot commando, so I used the macro...
> Is the variant
> below useful?
>
> f(var) = value(var . "_m")
> g(x) = m*x
>
> plot m=f("t1"),g(x), m=f("t2"),g(x)
yes very useful :) I wasn't aware of the value-function, that's exactly
what I tried to accomplish with the macros.
Again: thanks for the fast response!
Arun
|