SynthMaker

RPN Calculator - Reverse Polish Notation

Archive · 2012 12 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

DigitalWhiteByte ·

My gift for 2012

RPN Calculator Reverse Polish Notation Infix to Postfix & Evaluate Expression Shunting-yard algorithm used.

Ruby? Mubarak's grandson? 😉

Hoping that you get ruby as gift of Epiphany. Happy New Year to everyone

cyto ·

Wow! That is interesting work, DWB!!! I need to spend a bit of time examining this, but I can already think of some situations where this would be very useful. Perhaps you may see an emulation of my HP12C calculator coming soon. Is there a future for SM in the field of finance? 😉

-cyto

stw ·

Awesome work! Thaks for that DWB!

DigitalWhiteByte ·

I forgot to say that it is expandable, and other mathematical functions can be implemented as desired. The main benefit that I delegate for this module, is to have the possibility, for example, when designing a filter, have the opportunity to recalculate some things, like the coefficients directly in the exported plugin only changing the mathematical formula, and see the results, so focus on the mathematics.

Anyone who wants to work together to extend the functions, is welcome. If you have questions about how the schematic, do not hesitate to do it.

In a few days, how to add the functions in the schematic. I'm glad they like the idea.

DigitalWhiteByte ·

cyto wrote: Is there a future for SM in the field of finance? 😉

oohhh, yes If only he had the chance to have a socket server and client UDP oTCP .... perhaps I have already seen, in an other software .... can not remember the name though 🙂

mwvdlee ·

DigitalWhiteByte wrote: RPN Calculator

Nice! I've done math expression parsers in most languages I used and planned to do one in SM a few years ago, but never got beyond the planning stage. A lot of it still doesn't seem to work though; anything complex or recursive seems to give "Error" in the RPN output.

DigitalWhiteByte ·

mwvdlee wrote: DigitalWhiteByte wrote: RPN Calculator

Nice! I've done math expression parsers in most languages I used and planned to do one in SM a few years ago, but never got beyond the planning stage. A lot of it still doesn't seem to work though; anything complex or recursive seems to give "Error" in the RPN output.

THX Recursive math implemented for now, is only FRACTIONAL n!, in rpn only use simbol ! before number. For complex calculations, we must integrate the mathematical process, not implemented for now. but the module is fully upgradeable, I'm trying to create a simple tutorial to help everyone to expand the mathematical functions.

stw ·

Hi, here's a first approach for the calculators use as a function plotter. Maybe a starter for further improvements. No guarantee that it's bugfree! Hope you like it!

Cheers

EDIT: Ups... i failed. Detected a wrong link to the result float display. Fixed version upped.

DigitalWhiteByte ·

stw@ good implementation.

I updated the version, with the support of variables, like x, y, z a tip: the power is calculated as follows: pow (n, n)

trogluddite ·

😮 ! (lost for words).

stw ·

DigitalWhiteByte wrote: I updated the version, with the support of variables, like x, y, z

Yes, why not teaching us beeing fools... 😉 Really great work!

mwvdlee ·

stw wrote: DigitalWhiteByte wrote: I updated the version, with the support of variables, like x, y, z

Yes, why not teaching us beeing fools... 😉 Really great work!

So guys.... how about some mathematical music composition and/or synth?

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.