<commit_before>javascript-cas
==============

Javascript CAS is a simple computer algebra system designed for client-side use in web apps (and node.js too).

Including math.js in your web pages will create a single global object `M(str, context)`, which is a function that parses a latex expression string.

```javascript
var expr = M('x^2 + 3');

// Differentiate with respect to x
var derivative_expr = expr.differentiate(expr.unbound.x);

// Compile a javascript function
var js_func = derivative_expr.compile('x');

// now evaluation of the deriviative is very fast:
var x = js_func(3.1); // Returns a javascript number.
```

### Features
- Parsing latex expressions efficiently
- Differentiation
Export string representations of functions:
 - javascript: `.s('text/javascript');`
 - GLSL shaders: `.s('x-shader/x-fragment');`
 - Latex: `.s('text/latex');`<commit_msg>add build status to readme<commit_after>javascript-cas
==============

Javascript CAS is a simple computer algebra system designed for client-side use in web apps (and node.js).

Including math.js in your web pages will create a single global object `M(str, context)`, which is a function that parses a latex expression string.

```javascript
var y = M('x^2 + 3');

// Differentiate with respect to x
var dy = expr.differentiate(expr.unbound.x);

// Compile a javascript function
var fn = dy.compile('x');

// now evaluation of the deriviative is fast:
var x = fn(3.1); // Returns a javascript number.
```

[![Build Status](https://travis-ci.org/aantthony/javascript-cas.png?branch=master)](https://travis-ci.org/aantthony/javascript-cas)

### Features
- Parsing latex expressions efficiently
- Differentiation
Export string representations of functions:
 - javascript: `.s('text/javascript');`
 - GLSL shaders: `.s('x-shader/x-fragment');`
 - Latex: `.s('text/latex');`
{'fraction_non_alphanumeric': 0.14006514657980457, 'fraction_numerical': 0.004343105320304018, 'mean_word_length': 4.56797583081571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1582464', 'n_tokens_mistral': 574, 'n_tokens_neox': 536, 'n_words': 195}