Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > calculator library

Reply
Thread Tools

calculator library

 
 
=?iso-8859-1?Q?Sa=EFd?=
Guest
Posts: n/a
 
      11-30-2004
Hi,

Is there a pure C library that emulate a calculator (with +-/* operations,
plus log, sin,cos... functions). I would like to call such a program in a
way resembling this:

result("(4+6)*sin(pi/3)");
Or if the calculator is a reverse polish one
result("4 6 + pi 3 / sin *");

i.e. a library that makes computations according to a human readable
equation. The simpler would be the better.

Thanks for your help.

--
Saïd.
C programmers never die - they're just cast into void.
 
Reply With Quote
 
 
 
 
Ben Pfaff
Guest
Posts: n/a
 
      11-30-2004
Saïd <> writes:

> Is there a pure C library that emulate a calculator (with +-/* operations,
> plus log, sin,cos... functions).


Google for libmatheval.
 
Reply With Quote
 
 
 
 
=?iso-8859-1?Q?Sa=EFd?=
Guest
Posts: n/a
 
      11-30-2004
Ben Pfaff :
> Saïd <> writes:
>
>> Is there a pure C library that emulate a calculator (with +-/* operations,
>> plus log, sin,cos... functions).

>
> Google for libmatheval.


Thanks.

--
Saïd. (354kb gziped, that's huge!)
C programmers never die - they're just cast into void.
 
Reply With Quote
 
Luiz Henrique de Figueiredo
Guest
Posts: n/a
 
      11-30-2004
In article <>,
=?iso-8859-1?Q?Sa=EFd?= <> wrote:
>
> i.e. a library that makes computations according to a human readable
>equation. The simpler would be the better.


See ae at http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
--lhf
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is anybody knows about a linkable, quick MD5/SHA1 calculator library ? DurumDara Python 3 05-30-2006 11:09 AM
calculator makko Perl 2 03-01-2005 06:06 AM
Re: distance calculator =?Utf-8?B?bWFoc2E=?= ASP .Net 3 06-05-2004 09:31 PM
URGENT Help With Scientific Calculator! Maria Laura Re Java 4 12-14-2003 05:59 AM
bandwidth usage calculator Sai Cisco 5 11-07-2003 08:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57