[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Looking for (KDE) lib/class to perform calculations
From:       Rob Kaper <cap () capsi ! com>
Date:       2002-04-30 18:42:11
[Download RAW message or body]

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@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@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic