How to get maxima variable value by its name string
Subject: How to get maxima variable value by its name string
From: -
Date: Sat, 7 Dec 2013 17:15:56 +0000
Hi,
Thanks the help from Jaime (Jaime Villate <villate at fe.up.pt>), I was
recently able to read and modify some of the lisp source code of maxima.
Now I want to write a lisp function that is able to replace variable names
in a string to their current values in maxima. For example:
var2:3+2;
var1:"3+2=$var2$";
str: ? The value of var1 is: $var1$?;
str2:name2value(str);
I want str2 to be ? The value of var1 is: 3+2=5? after running the function
name2value.
I am struggling with how to get maxima variable value by its name string
(e.g. "var1") in lisp.
If you know how to do this using maxima code, that would help as well.
Thanks.
Leo