New Parser Added to Chart Object

muParser is now implemented into the Chart object. This means that the ‘generate graph from equation’ action is much quicker and also is a lot more flexible. For instance, it now has ‘sin’, ‘cos’, ‘tan’, ‘asin’ (inverse sine), ‘log’, ‘abs’, ‘sign’, ‘log2’, ‘sqrt’, and so on. You can also have boolean operators in the expressions. For instance, “(x<0)*2 + (x>1)”, where comparisons give 1 if true and 0 if false.

Here is a picture of the graph defined by an equation:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: