Good news, I think, I'm not afraid of Expression type any more.

However, I still have a question about Expression. I need to implement
Poisson bracket from classical mechanics. In one dimensional case the
system is described by its coordinate q and momentum p and I assume
Poisson bracket in FriCAS to be

poissonBracket : Expression(Float) -> Expression(Float) ->
Expression(Float)
poissonBracket f g == D(f,q) * D(g,p) - D(f,p) * D(g,q)

But I need to consider higher dimensional systems. I want to preserve
common notion qᵢ and pᵢ (q_i, p_i), . How do I do that?

In this example q and p have type SYMBOL. Does it mean I need
something like a constructor for SYMBOL that would take INT as an
argument? Some kind of function INT -> SYMBOL.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to