Using eval() To Transform Symbolic Expressions Icon

Using eval() To Transform Symbolic Expressions

As an underhanded solution to an problem in an online programming challenge

Using eval() To Transform Symbolic ExpressionsOverview

Editor: This was written as an underhanded solution to an problem in an online programming challenge that required converting simple arithmetic expressions from infix to Postfix form. I thought the solution was pretty neat, and I suspect the general technique may be useful for other problems so i'm including it here.

NEW

Fixed some bugs.

Using eval() To Transform Symbolic ExpressionsInformation

Version
1.0
Date
04.15.10
License
Language
English
File Size
N/A
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
Coding Standard Adaptor Icon
Coding Standard Adaptor script contains a function which takes an object.
Constraint-based Sudoku Solver Icon
This code uses the constraint package to solve sudoku puzzles.
More
Principal Component Analysis (PCA) Icon
A class that carries out Principal Component Analysis (PCA).
Free
SRCDS Icon
A library to interface with Half-Life2 Dedicated Servers
Free
Complex Boolean Regular Expression Class Icon
Need to look for the occurence of words in a string or group of words
Free
Display an Image from a specified file Icon
Reads an image file from the filename specified as the 1st parameter
Free
Quickslice decorator Icon
Quickslice decorator script defines a decorator that allows for an abbreviated
Free
mx.ODBC example Icon
mx.ODBC example script shows you how to get the columns of a table and get data.
Free
Python replacement for java.util.Properties Icon
Quick and easy way to process Java properties files using pure Python
Free
Merging two sorted iterators Icon
Provide a mergeiter() function that can merge two iterators into single iterator
Free
More