Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » libsbml-development » getFormula and InitialAssignment
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Frank Bergmann


Posts: 81
Registered:
August 2005
Re: getFormula and InitialAssignment 27 Jul '09 16:24 Go to previous messageGo to previous message

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

      

SubjectPosterDate
Read Message   getFormula and InitialAssignment mazza23 Jul '09 16:31
Read Message   Re: getFormula and InitialAssignment  Frank Bergmann27 Jul '09 16:24
Read Message   Re: getFormula and InitialAssignment ajouraku27 Jul '09 16:42
Read Message   Re: getFormula and InitialAssignment Frank Bergmann27 Jul '09 17:19
Read Message   Re: getFormula and InitialAssignment mazza27 Jul '09 23:32
Read Message   Re: getFormula and InitialAssignment Sarah Keating27 Jul '09 16:30
Read Message   Re: getFormula and InitialAssignment Lucian Smith27 Jul '09 16:34
Previous Topic:Release of libSBML-3.4.1
Next Topic:LibSBML crashes non-deterministically
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.