| Author | Topic |
Posts: 81
Registered: August 2005
|
|
Re: getFormula and InitialAssignment
|
27 Jul '09 16:24

|
 |
|
Hello,
As far as I can recall the getFormula functions are only available for SBML
elements that were present in SBML Level 1 (where only infix strings were
used instead of MathML). However you can convert the ASTNode to an infix
string using:
string formula = libsbml.libsbml.formulaToString(node);
And get an ASTNode for a string using:
ASTNode node = libsbml.libsbml.readMathMLFromString( infixString)
I hope this helps,
Best
Frank
> -----Original Message-----
> From: libsbml-development-bounces@caltech.edu [mailto:libsbml-
> development-bounces@caltech.edu] On Behalf Of mazza
> Sent: Monday, July 27, 2009 4:19 PM
> To: libsbml-development@caltech.edu
> Subject: [libsbml-development] getFormula and InitialAssignment
>
>
> Hi,
>
> I noticed that the InitialAssignment class has not a "getFormula"
> method. I've read throughout this forum the reason. However, I would
> need to still convert an ASTNode to a formula, replace parameters,
> solve the formula and get a numerical result.
> Could somebody suggest me an alternative manner to retrieve the
> formula? I'm using the csharp binding.
>
> Many thanks
> Tommaso
> ____________________________________________________________
> To manage your libsbml-development list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/libsbml-development
>
> For a web interface to the libsbml-development mailing list, visit
> http://sbml.org/Forums/
>
> For questions or feedback about the libsbml-development list,
> contact sbml-team@caltech.edu
____________________________________________________________
To manage your libsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-development
For a web interface to the libsbml-development mailing list, visit
http://sbml.org/Forums/
For questions or feedback about the libsbml-development list,
contact sbml-team@caltech.edu
|
|
|