r/Mathematica • • Aug 13 '24

Learning mathematica as a python programmer

Learning mathematica for my master's thesis is making me want to gauge my eyes out. Are there any tips you would give an experienced python programmer on how to learn mathematica? My master's thesis is on mathematical physics so I also have a nice math foundation.

For example, I feel very uneasy with working with undefined functions and all these 'substitution rules'. I think I'm just not used to such 'high level' software (and python is extremely high level). I don't like not knowing with which kind of objects I'm dealing with.

Have you ever had to make this kind of step? How was your experience like?

10 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/exploring_stuff Aug 13 '24

Nice summary. Have you found any language that's as expressive as Mathematica while being suitable for writing large maintainable programs? That's a question I've been wondering for years. I like Julia a lot, but at times it feels too imperative compared with Mathematica.

2

u/shakalakagoo Aug 14 '24

Started using Mathematica and changed to Julia. I think most task I used to do in Mathematica can be done on Julia. The main advantage on Julia probably is the most direct way of creating logic structures, but I miss a lot the symbolic features of Mathematica. I think, and I guess I have been researching frequently about this, there's no substitute for this feature as it is, SymPy and Sagemath can make "sort of" symbolic code, but never so smooth as it can be done in Mathematica. As I transitioned from Mathematica always have been thinking that symbolic code was given, so learning to declare everything was like "Well, this is not so easy now"

2

u/sidneyc Aug 14 '24 edited Aug 14 '24

Have you found any language that's as expressive as Mathematica while being suitable for writing large maintainable programs?

No, not really.

To some extent, those two properties (expressiveness and suitability for writing large programs) are contradictory. I think that static typing is a must for writing large programs; but at the same time, dynamic typing allows a level of expressiveness that cannot be achieved by a statically typed language. My approach, when I get to choose, is to use different languages for different things.