[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: ian reinhart geiser <geiseri () yahoo ! com>
Date: 2002-03-25 2:23:13
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> They are not to hard to write, but I could have sworn that I saw a few on
> freshmeat. If you get in a pinch I could fire you off a copy of the code
> and you can play with it and make it do what you need.
>
I just looked at the code, it is one class, called FSolver(). With very
little effort it could be added into KDE 3.1. Currently it handles *,+,-,/
and ^. It has broken support for cos, sin, tan and inv but this is about a
week of real work. Its pretty small but it should do what Rob wants and hey
it may even be of some use to something like KCalc..
geiseri@rae:/mnt/network/home/geiseri/projects/solver/solver> wc solver.cpp
207 716 5524 solver.cpp
It is all stack based and very fast, I used it in quite a few other projects
allready with no real problems.
- -ian reinhart geiser
- --
:-- Ian Reinhart Geiser --:
GPG Key: D6A6 7E16 13A9 B5A7 9E18 D1A7 3F2E B64D 19BC 76F8
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE d- s+:+ a- C++++ UL+++ P--- L+++ E- W++ N- o- K--- w-
M+ V-- PS+ PE- Y+ PGP++ t-- 5-- X R++ tv- b+ DI++ D++
G++ e++ hasciicam-0.9 r+++ y**
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8nooRPy62TRm8dvgRAoTFAJ4mtMK8yCeoZ/HJqR9L24j8M4zOzgCbBEfh
YhW/uv7fykdEhi3IW2f6ATM=
=GEdl
-----END PGP SIGNATURE-----
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic