|
|
|
|
|
by goldenkey
3154 days ago
|
|
Mathematica is functional. So..you can but you can't. Expressiveness..its a virtue, and Mathematica offers it through being a pattern matched, lazy binding, functional language, with both lexical and block scope, with amazing operators built in for the basic data types. Shameless plug:
https://scrollto.com/the-generalized-mean-an-algorithmic-app... The code could maybe be written in another language but the fact that Mathematica allows for unbound variables and has beautiful functional library calls like Fold, make it very elegant to write once and work with almost any arguments. Wolfram Cloud is free and Mathematica has a trial, if you did want to fool around. Mathematica is written in C++, it would be nice to see Wolfram head in the direction of having it produce binaries. It could become a major language of general development if that ever became the case. But Wolfram has always been very "particular" with his goals. One can dream... |
|
#%:/
define it as gm =: # %: /
# is tally or number of terms
%: is root
* multiply
/ apply over or map
gm 1 100
10
It also has plot libraries, graphics and is very fast for an interpreted language. Perfect for math and statistics. I do like the curated data available to Mathematica, and WL or Wolfram Language is able to be coded functionally, imperatively, or any way you might want.