[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Lommeregner funktion i C



René Seindal wrote:
Hans Schou wrote (09-01-2005 14:01):

On Sun, 9 Jan 2005, Egon Andersen wrote:


Jeg har ofte funderet på om der findes et bibliotek med en funktion der fungerer som en calculator.



y = calculate("2.5+3*8");
Hvor y så bliver 26.5



Sådan en kaldes en "Mathematical parser" men google kan ikke kige finde en der ikke er shareware.


Licens: gerne LGPL, men ikke GPL.



Det udelukker så at du kan sakse den fra bc.


Det udelukker jo en del. GNU m4 har også sådan en indbygget, men den er også GPL.

Du kan måske finde nogle brugbare kildetekster fra xxxBSD til bc eller m4, som du kan bruge hvis de er under BSD licensen. Den udelukker ikke kommerciel brug uden kilde-distribution.


Der findes altså ikke lige det jeg har brugfor :-(
Men okay, det tog mig ikke så lang tid at lave en helt fra scratch, der har alle almindelige regnearter og tager højde for præcedens og håndterer parenteser og kender en lang række funktioner og visse almindelige konstanter.


Det undrer mig blot, at det ikke var en biblioteksrutine man blot downloadede.

Med venlig hilsen
Egon Andersen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *