Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Mathics, a free Mathematica-compatible project has been recently launched. It provides a subset of the functions and capabilities of Mathematica at a slower pace.

This opens us the tantalizing possibility to share our code even with people who do not have Mathematica on their computers.

Since Mathics is currently supporting only a fraction of all Mathematica functions, it becomes important for our code to be able to discriminate whether it is run within Mathematica or Mathics.

Is this possible?

share|improve this question
2  
Recently in Meta it was asked whether it would be appropriate to talk about Mathics. Several users (including me) thought it would be interesting, as long as Mathics language is compatible with Mathematica. So I just started the tag with this simple, but necessary question. –  magma Nov 11 '13 at 12:09
add comment

1 Answer

Yes it is fortunately possible. The $Version command is available in Mathics too and can clearly distinguish whether your code is running in Mathematica or Mathics, so the developer can take appropriate actions.

If you have written code/packages you might try to see if they run with Mathics and perhaps add some code to make them compatible if possible.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.