Looking for (KDE) lib/class to perform calculations

Rob Kaper cap at capsi.com
Tue Apr 30 19:42:11 BST 2002


On Thursday 01 January 1970 01:00, Rob Kaper wrote:
> Is there a class/method/lib in KDE/Qt to perform calculations?
>
> Something like KCalculator::calculate(const QString expression) or
> something that let's me do int result = calculate( "(3*%1)+40" ).(30) which
> will return
> 130..

I think I found what I was looking for:

cap at kira:~/libmath/examples$ ./f1 25\*2^x 3
Function Library example program (l1)
u(x)=25*2^x
        u(3)=200

Small and elegant, very useful. It's not Qt/KDE, but it's C++ so that's nice.

Rob
-- 
Rob Kaper     | Gimme some love, gimme some skin,
cap at capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A




More information about the kde-core-devel mailing list