Logo CNR

Infix notation to PharmML math online converter

The infix2pharmml converter translates expressions from the usual mathematical infix notation into the corresponding PharmML markup. PharmML is a markup for pharmacometrics models developed by the DDMoRe consortium.

Converter version 0.6.x. The output should be compliant with PharmML version 0.6.

Quickstart

This is an online version of the converter. For details, a full list of the converter's features and limitations, and source code, see the project's README and the infix2pharmml project page at SourceForge.

The converter works in either single-statement or stand-alone model mode.

Enter the formula below

Build a stand-alone model

Examples

Click to copy in the input area above.

Single-statement mode Stand-alone model mode

1+sqrt(a^2+b^2)

logx(x,e)

A*exp(-alpha*t)+B*exp(-beta*t)

output=1+pi+myfunc(t=sin(x))

diff(q,t)=1+sin(t)

myLength(x,y,z):=x^2+y^2+z^2

sqrt(myLength(x=sin(t),y=4!,z=0))

y:=A*exp(-alpha*t)+B*exp(-beta*t)

diff(a,t)=b; 
diff(b,t)=-a;

diff(A,t)=-k*A; 
C:=A/V

A:=dose*exp(-k*t) {Exponential decay model}; 
C:=A/V {Concentration}

diff(A1,t)=-Cl*A1/V1+Q*(A2/V2-A1/V1); 
diff(A2,t)=-Q*(A2/V2-A1/V1);
C1:=A1/V1

diff(E,t)=Rin-Rout*E

diff(G,t)=-(Sg+Si*Z)*G+Sg*Gb+Ra/V;
diff(Z,t)=-lambda*Z+lambda*(I-Ib);

par v_init=10, a=1; diff(v,t):=a+b;

License

infix2pharmml - Infix notation to PharmML math online converter

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Privacy policy

Server use and the data submitted are logged. Do not submit any confidential information. To use the server privately, download the code and use it locally.

Acknowledgments

Partial funding from the DDMoRe IMI project is gratefully acknowledged.