English
Forum

maths-Parser

 

Jac
de
Lad
Hello Community!

yet be I you really only on The nerves gone, Have infinite many ask set and my Progs and Codeschnipsel in the background held. Well, the lying on it, that my programs wahrescheinlich no large usage for you having. however. I work in the momentum in a Taschenrechner, the not only simply calculate should, separate too functions (too in 3D) present should, as well as Terme transform and on solve, bypass with complex numbers etc...anyway have I started a Parser for mathematical expressions To write. i think, whom can your Perhaps too use...though is the not yet ready. it rule in the momentum the following:
- The Grundrechenarten +-*/ as well as (Division with cut off the Machkommastellen) and Potenzen (with ^)
- clinging (alike whether (), [], {}, <> or mixed, everything becomes recognized)
- space go ausgefiltert
- negatives numbers must not clinging gefasst go (Please try)
- catches following Error ex: Division through 0, unausgewogene clinging, not vorhandener Term, unerlaubte characters in the Term (yet unvollständig), incorrect Klammeranordnung
- big- and Kleinschreibung becomes ignoring (for later trigonometrische functions and so, yet not of interest)
but the most important: it orientiert itself on Punktrchnung to Strichrechnung and Potenzen to Punktrechnung!

any The in the Time having: Please probiert the part time from. the whole have I in a PCU gepackt and is in the principle a class. here one demonstration-code:
 $u Parser.pcu=Math.
 {$iq}
declare term$,m#
Dim m#,Math
term$="-2*-12-3*6"
m#.Term&=Addr(term$)
cls
Print "PCU-Version: "+m#.Version()
Print "Term: "+term$
Print "Ergebnis: "+m#.Parse()
Print "Fehlernummer: "+Str $(m#.Error%)
Print "Fehlerstring: "+m#.ErrCode()
Print "Iterationen: "+Str $(m#.iterations%)
Print "Benötigte Berechnungszeit: "+Str $(m#.Time&)+" Millisekunden"
Print "--- Button ---"
Dispose m#
waitinput

i will in the momentum not yet plenty betray, the follows everything, if the Parser correct functions. to that try simply The Formel Change, the demonstration-code is really neither difficult to unterstand. me GEHTS, How said, in the momentum only therefore Error aufzudecken. I Have yet no found, but I rechne with Ner Lawine Zuschriften. Well, if the then sometime richt working can I The Trigonometrie install and Stochastik and so, I will too a complete Description supplying. means How said: BITTE FEEDBACK, straight because of negativer numbers!

Jac

@Michael Wodrich: Vielen Thanks for your Help! I Have unfortunately The old Version completely verhunzt and Have therefore again of in front started. but some could I wiederverwenden, particularly would I without your Help not so quick vorangekommen!!!

Nachtrag:
On new version updated: 0.1.0.4 (improvement the recognition negativer numbers, should now perfect his, the Term can now too Parameter the procedure Parse indicated go [has precedence to the indicated with .term&!]).

5 kB
Kurzbeschreibung: Matherparser 0.1.0.4 (09.02.2006)
Hochgeladen:02/09/06
Downloadcounter312
Download
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/09/06  
 



super part! Nurn andern names need it well.

Parser Gibts Yes many...

my short Tests having it fehlerlos Überstanden!
 
02/09/06  
 




Jac
de
Lad
well, i'll moreover dran feilen! Have already etliche ideas. name...hm...i'm nothing better invaded as Matheparser (what it Yes in the Grunde is). If someone Proposals has...

Schade only a Rückmeldung; means if yet someone a comment has: here, here (motion, motion!)!!!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/10/06  
 




Frank
Abbing
Hi,

I yourself need so a Parser not.
But if You XPIA nutzten would, could you on many hochwertige and fast Mathefunktionen and Fliesskommafunktionen grab. Masms Own Library masmlib32 bid in this direction some. maths and converting (z.B. String to Fliesaskommo and inverse).
 
02/10/06  
 




Jac
de
Lad
Hello Community. Hm, even if the interest only mäßig is make I the part ready. I had it Yes urspränglich too only for me virtual.

@Frank: Yes, I know, but I be not yet so Assemblerfirm, I the hinkriegen would. therefore make I the now in Profan ready.

here The Changes the new Version:

Parser 0.2.0.7:
- the * must not any more to clinging indicated go
- rule ! (Fakultät) and ° (Conversion of Dezimalgrad in Bogenmaß)
- Aufeinanderfolgende Operators go recognized
- Potenzen with the Base 0 go now correctly recognized (before Error Message)
- Operators at the beginning or end the Terms go recognized
- several Dezimalpunkte in a number go recognized
- Führende zero of Point numbers 1<x<1 must not indicated go
- new functions: Sinus, Cosinus, Tangens, Cotangens, Sekans...(altogether 32 Piece)
- 3 Konstanten introduced: Pi, Eulersche number and Phi (with pi, ez and phi)

and here aktualisierter Testcode:
CompileMarkSeparation
 $U Parser.pcu=Math.
 {$iq}
declare term$,m#
Dim m#,Math
term$="(sin(2*4-11^2)°)"
m#.Term&=Addr(term$)
cls
Print "PCU-Version: "+m#.Version()
Print "Größe der Struktur: "+Str$(SizeOf(m#))+" Byte"
Print "Term: "+term$
Print "Ergebnis: "+m#.Parse()
Print "Fehlernummer: "+Str$(m#.Error%)
Print "Fehlerstring: "+m#.ErrCode()
Print "Iterationen: "+Str$(m#.iterations%)
Print "Benötigte Berechnungszeit: "+Str$(m#.Time&)+" Millisekunden"
Print "--- Taste ---"
Dispose m#
12 kB
Kurzbeschreibung: Matherparser 0.2.0.7 (10.02.2006)
Hochgeladen:02/10/06
Downloadcounter132
Download
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/10/06  
 




Jac
de
Lad
Uups, here yet quick one Bugfix (does me sorrow):

- New Feature: lz (logarithmus to Base 2)
- Bugfix the function cosec (having Compilieren prevented)

Jac

12 kB
Kurzbeschreibung: Matherparser 0.2.1.8 (10.02.2006)
Hochgeladen:02/10/06
Downloadcounter165
Download
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/10/06  
 




Jac
de
Lad
so, here's the for the time being latest Update. for want of interest poste I here only The corrected version, who still interest having ought to can that here post or with by Email on jac@parasun.de write. i'll nevertheless weiterentwickeln, means who interest has get ne well ausgebaute Version. latest Changes (Version 0.3.0a.15):

- Bugfix because of Error verhinderte Perform of Compilaten
- 6 new Winkelfunktionen
- many unmögliche Operationen go now recognized
- the Result becomes now too in .Result$ zurückgegeben
- with large numbers (numbers with Exponenten) could Error appear, fixed
- Bugfix because of Error verhinderte Perform of Compilaten
- 6 new Winkelfunktionen
- many unmögliche Operationen go now recognized
- the Result becomes now too in .Result$ zurückgegeben
- with large numbers (numbers with Exponenten) could Error appear, fixed
- new Operationen with several Paramtern (Stochastik, etc.)

Jac

17 kB
Kurzbeschreibung: Matherparser 0.3.0a.15 (11.02.2006)
Hochgeladen:02/11/06
Downloadcounter162
Download
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/11/06  
 



The PCU is very nice - and with the the magelnden interest will sure too Change. Please vergiss not that this here a very small Community is.

have You interest the The Unit here: [...]  aufgelistet becomes?
 
02/12/06  
 




Michael
Wodrich
The Description hears itself well on, but I get only a PCU File as Download.

you have there Yes in shortest Time integrally beautiful zugeschlagen...

...but my Kristallkugel is strain in Reparatur, can You do not time konkrete Funktionsnamen name, so we the time durchtesten can?

ZIP with PCU and Helpfile would well.

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
02/12/06  
 




Jac
de
Lad
@iF: Hm, not yet, because the PCU not yet is done. I have too strain again a Latte of Fehlern discover, The I in momentum behebe (some weg even so deeply, that The complete Berechnung through Schlüsselwörter concerned is. I login me, if I a new, improved or at least gefixte Version ready have.

@Michael: Meinst You functions the PCU or functions, The inside the Terms allows are? The PCU has only The class, there Gibts really not any more To erklären; The functions into Termen (Have in the momentum 59 installed) comment I soon. I have How said strain another couple massive problems found, so I the first correct must and me then circa a Documentation concern will be! but Standardfunktionen How Sinus and Cosinus and so are How everywhere marks (Sin(3,141593) or Cos(180°)). As I said a Doku comes soon.

Beautiful, that still a little bit interest there's!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/12/06  
 




Michael
Wodrich
[quote:bc8ba170c1]Beautiful, that still a little bit interest there's![/quote:bc8ba170c1]
the lying just on it, that one not always same his straight News proposition lay aside can...

I were on Nachschub from you, by then is certainly too More Time available...

Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
02/12/06  
 



@Jac:

around the produce of/ one Help explicit To speed have I the XPSE couple small crazy Features for making of Units beigebracht. look time into Help.

a) there writes itself the document How of self.
b) each Compile arise a .def File. therein stand then Schonmal any Procs.
c) a couple offensichtliche Error go displayed.
 
02/12/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

23.152 Views

Untitledvor 0 min.
Sven Bader08/31/23
iF12/06/20
RudiB.04/15/20
kustg03/02/20
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie