logoalt Hacker News

jjgreenlast Saturday at 1:13 PM3 repliesview on HN

In Maple sin(x) is "sin(x)", in Mathematica it's "Sin[x]", ewww


Replies

superposeurlast Sunday at 9:19 AM

The Maple syntax may superficially seem easier but actually leads to more problems in practice. The point of the [ ] is that argument of a function is logically distinct from algebraically grouping terms in an equation. Also, Mathematica is a camel case language since underscore is for pattern recognition, hence the capitalization of function names. Personally, I’ve found every little Mathematica design feature to be incredibly well thought out, logical, and consistently implemented over the whole of the language.

aleph_minus_onelast Saturday at 1:38 PM

In my opinion, Wolfram/Mathematica is more consistent internally, while Maple is more consistent with the usual mathematical notation.

show 1 reply
pmkarylast Saturday at 3:12 PM

I actually loved this idea so much that every language I make, I try to do the same. The point of it is that typing ( requires shift, while [ does not. And you have no idea when you have tunnel syndrome, how much it hurts each time you write a (. While it’s ugly, the hand thanks you for it.

show 2 replies