Programming (C#) Infix->Postfix->Evaluation

ApacheChief

Senior member
Oct 2, 2004
531
0
0
Download (with source) www.insolence9.com/downloads/SBN.zip

I'm making a little interpreter, and I am currently trying to solve expressions, I'm wondering how I'm doing. I can't really find any good C# forums, so also if anyone knows of any please let me know

Anyway, I need a _very_ complicated and long equation to test this with (EXE in the bin/debug folder).

I just got home from school, very excited, if I left anything out please ask
 

ApacheChief

Senior member
Oct 2, 2004
531
0
0
Just beginning to learn about it Not really sure what they are yet, I keep seeing stuff like this to generate grammars:
$something = 1
| 1
| 2;
 

CycloWizard

Lifer
Sep 10, 2001
12,348
1
81
Hehe... I've got just such an equation. I solved something analytically for a math project last year but ran out of time trying to crunch all the numbers. This might be a little overkill, so don't take it personally if your program can't do it.

http://it.che.wustl.edu/~reillyma/che515/final.doc

The first equation on page 6 immediately comes to mind as the real bastard. J0 and J1 are Bessel functions which are infinite sums in and of themselves (not sure how much math you know). I'll try to run it on my end if I can figure out your program and see what happens. There are less demanding equations in there as well that might be a better test, like on page 8 and 9 - that one is just by far the most extreme.

edit: Maybe I'm thinking of the wrong kind of solver... What exactly does this thing do? How do I need to input an expression?
 

ApacheChief

Senior member
Oct 2, 2004
531
0
0
Well it's pretty simple, type it in at the top, press interpret, it spits out an answer at the bottom, or gives you an error. Sorry, should've documented it a bit more. thanks for contributing, reading the file now

EDIT:
It doesn't solve for variables or anything, so you'll have to plug 'em in manually. Sadly it's not meant for things like that
 

CycloWizard

Lifer
Sep 10, 2001
12,348
1
81
Originally posted by: insolence
Well it's pretty simple, type it in at the top, press interpret, it spits out an answer at the bottom, or gives you an error. Sorry, should've documented it a bit more. thanks for contributing, reading the file now

EDIT:
It doesn't solve for variables or anything, so you'll have to plug 'em in manually. Sadly it's not meant for things like that
OK, that's about what I figured. It doesn't do summations or anything then, correct? Hard to get a CPU-intensive equation without some kind of ridiculous sum. I'll give it a whirl tonight and see what I can see.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |