Transfer of JSXGraph-generated variable names to STACK

Transfer of JSXGraph-generated variable names to STACK

by Martin Kraska -
Number of replies: 0

Hello, I am trying to build a STACK test, where in step 1 the user can create forces and moments and assign names to them in a JSXGraph element.

Then in step 2 I expect the user to input an expression for the sum of the forces in x and y direction and the moment about some point.

As the names used by the user aren't known in advance, I have to generate the reference solution for step 2 from the result of step 1.

In order to do this I have to cope with the forbidden eval_string(), which would allow for extracting the variables from strings representing their names.

As a workaround, I try to write the list of variable names directly to an algebraic input, connected to the JSXGraph board.

I am wondering if I really can't extract the variables from the name strings directly.



Average of ratings: -