Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jyh1 committed Mar 16, 2016
1 parent 4f332d8 commit 7b0e634
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ I decide to write myself a simple Mathematica interpreter to learn more about Ha
![mmaclone](https://raw.githubusercontent.com/jyh1/mmaclone/master/demo.GIF)


## Running:
## Running (Using [Stack](https://github.com/commercialhaskell/stack)):
```
git clone https://github.com/jyh1/mmaclone.git
cd mmaclone/mmaclone
Expand All @@ -17,6 +17,9 @@ I decide to write myself a simple Mathematica interpreter to learn more about Ha
stack exec mmaclone-exe
```

## For more information please refer to the project [wiki](https://github.com/jyh1/mmaclone/wiki) (still under construction).

## [Prebulid Windows Binary File]()

## Features that are likely to be added in future versions:
1. More mathematical functions (`Sin`, `Cos`, `Mod` etc...)
Expand Down
Binary file modified demo.GIF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions demoScript.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
rules={Log[x_ y_]:>Log[x]+Log[y],Log[x_^k_]:>k Log[x]}
rules:={Log[x_ y_]:>Log[x]+Log[y],Log[x_^k_]:>k Log[x]}
Log[a (b c^d)^e] //. rules
If[#==0,1,# #0[#-1]]& /@NestList[(2 #)&,5,2]
(If[#==0,1,# #0[#-1]]&)/@NestList[(2 #)&,5,2]
fib[n_]:=fib[n]=fib[n-1]+fib[n-2];fib[0]=fib[1]=1
Map[fib,Range/@Range[10],{2}]
Print/@fib/@{10,100}
{#,Plus[##2]}& @@@(Range/@Range[2,10])
%5[[Range[1,9,2],2]]
({#,Plus[##2]}&) @@@(Range/@Range[2,10])
%[[Range[1,9,2],2]]

0 comments on commit 7b0e634

Please sign in to comment.