Skip to content

Commit

Permalink
Documenting...
Browse files Browse the repository at this point in the history
  • Loading branch information
Iury O. G. Figueiredo committed Nov 5, 2014
1 parent 9b92729 commit 2e6655e
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ lax

A pythonic way of writting latex.

I always found it boring and a pain to write some mathematical
formulaes in latex. Mainly those with a lot of \frac{x}{Y} stuff.

That is why i thought of implementing this small template system
for latex, it is a nap to write some mathematical formulaes
when compared to latex.

Install
=======
Expand All @@ -14,5 +20,47 @@ That is all.
Usage
=====

tau@eletron:~$ lax -c 'x * 2'
x\cdot2
tau@eletron:~$ lax -c '2 * x'
2x
tau@eletron:~$

The usual notation for x2 is x * 2 but 2 * x is usually written as 2x.

tau@eletron:~$ lax -c ' x * 3 * 3 * x'
x\cdot3\cdot3x
tau@eletron:~$

With exponents.

tau@eletron:~$ lax -c '((x-1)/(x-2)) * x'
\frac{x-1}{x-2}x

tau@eletron:~$ lax -c '(x-1)/(x-2) * x'
\frac{x-1}{x-2}x

tau@eletron:~$ lax -c '(x-1)/(x-2) * x'
\frac{x-1}{x-2}x

tau@eletron:~$ lax -c 'x/(x-2) * (x-1)'
\frac{x}{x-2}\left(x-1\right)

tau@eletron:~$ lax -c '(x-1)*x/(x-2)'
\frac{\left(x-1\right)x}{x-2}

tau@eletron:~$ lax -c '(x*(x-1))/(x-2)'
\frac{x\left(x-1\right)}{x-2}

tau@eletron:~$ lax -c '((x-1) ** ((x-1)/(x+2)))/(y-z+k-e+w)'
\frac{\sqrt[\left(\frac{x-1}{x+2}\right)]{\left(x-1\right)}}{y-z+k-e+w}

tau@eletron:~$


I'll implement other functionalities soon.





0 comments on commit 2e6655e

Please sign in to comment.