new user questions

52 views
Skip to first unread message

osmanfb1

unread,
May 12, 2023, 1:54:24 PM5/12/23
to mathic...@googlegroups.com


Hello,

I have installed mathics 6.0.1 on my ubuntu 22.04 machine. Very nice. I am using mathicsscript and Django. Mathics is working fine. The "demo" only messes up at the end in the natural language module. I get  "Sorry, an error occurred while processing your request!"  for the WordFrequency, TextCases, and DeleteStopwords lines. Pluralize, LanguageIdentify work as expected. Is this a known problem?

I am also new to Mathematica syntax. Since there is more mathematica documentation, is there a doc on differences between mathics  and mathematica?  I would like to see if any of the open source mathematica packages could be used with mathics with some limited editing. First, wanted to see if the open source Rubi, a rule based integration package is usable with mathics.

A related question: what does the back-tick symbol do in mathematica/mathics?  As in

<<Rubi`
or
Get["Rubi`"]
I was not able to get either working. Can't find the file. Where should I put the package?

Thanks in advance,
Osman

Software Information
Python

    Python: 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
    Implementation: CPython 3.10.6.final.0

Mathics3 Software

    Mathics3 Django: 6.0.0
    Mathics3: 6.0.1

Web Software

    Django: 4.2
    mathics-threejs-backend: 1.3.1
    three.js: 146
    MathJax: 2.7.9

Numeric Software

    mpmath: 1.3.0
    Numpy: 1.24.0
    Sympy: 1.11.1

Optional Software

    cython: 0.29.34
    lxml: 4.9.2
    networkx: 3.1
    nltk: 3.8.1
    psutil: 5.9.5
    skimage: 0.20.0
    scipy: 1.10.1
    wordcloud: 1.9.1.1

Settings
Django

    ALLOWED_HOSTS: []
    DEBUG: True
    DISPLAY_EXCEPTIONS: False

Mathics3 Django

    Settings`$PreferredBackendMethod: "sympy"
    This sets whether to use mpmath, numpy or Sympy for numeric and symbolic constants and methods, when there is a choice.
    Settings`$QuotedStrings:
    If this Boolean variable is set False, hide the quotes when the top-level value is a string.
    Settings`$TraceGet:
    If this Boolean variable is set True, 'Get' traces the lines it reads that start a new expression.
    Settings`$UseSansSerif:
    If this Boolean variable is set True, MathMLForm uses a Sans-Serif font.


File Paths

    Base Directory: /home/osman/Mathics/env/lib/python3.10/site-packages/mathics
    Home Directory: /home/osman
    Installation Directory: /home/osman/Mathics/env/lib/python3.10/site-packages/mathics
    Root Directory: /
    Temporary Directory: /tmp
    Workspace Database File: /home/osman/.local/var/mathics/mathics.sqlite
    Doctest Data: /home/osman/.local/var/mathics/doc_html_data.pcl

Machine information

    Machine Name: osman-OMEN-by-HP-Laptop-17-ck1xxx
    Machine: linux
    Processor Type: x86_64
    Memory Available: 27627139072
    System Memory: 33314291712
    Machine Precision: 15.954589770191003

Connection Information

    HTTP User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
    Remote User:
    Remote Address: 127.0.0.1
    Remote Host:

Mauricio Matera

unread,
May 15, 2023, 9:35:35 AM5/15/23
to mathics-users
Hi Osman,

> I have installed mathics 6.0.1 on my ubuntu 22.04 machine. Very nice. I am using mathicsscript and Django. Mathics is working fine. The "demo" only messes up at the end in the natural language module. I get  "Sorry, an error occurred while processing your request!"  for the WordFrequency, TextCases, and DeleteStopwords lines. Pluralize, LanguageIdentify work as expected. Is this a known problem?

Regarding this, it could happen that one of the required libraries are not available/completely installed on your system.

> I am also new to Mathematica syntax. Since there is more mathematica documentation, is there a doc on differences between mathics  and mathematica?  I would like to see if any of the open source mathematica packages could be used with mathics with some limited editing. First, wanted to see if the open source Rubi, a rule based integration package is usable with mathics.

In principle, the syntax of Mathics is fully compatible with Wolfram Mathematica. However, still we have certain issues in loading packages. In particular, we still were not able to load Rubi. This is due to certain advanced functions required by Rubi are still not implemented in Mathics.

> A related question: what does the back-tick symbol do in mathematica/mathics?  As in

The back-tick is a Context marker: symbols in WL are associated to contexts. For example, the full name of `Plus`  is ``` System`Plus```. If the context is not specified, the symbol is look first in the default context (`$Context`) and then in the contexts listed in `$ContextPath`.

M

osmanfb1

unread,
May 17, 2023, 6:00:49 PM5/17/23
to mathic...@googlegroups.com
Thanks Mauricio. Is there a list of missing functions in Mathics?

--
You received this message because you are subscribed to the Google Groups "mathics-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathics-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathics-users/ea37d945-2c6e-429b-87c3-ff424ab31e48n%40googlegroups.com.

Mauricio Matera

unread,
May 18, 2023, 10:38:40 AM5/18/23
to mathics-users
If the number of available functions is quite long, it is far from covering all the functionalities of the WMA kernel. What we usually do is to add support for symbols and modules as the need comes up.
If you want a specific  function, please add a an issue https://github.com/Mathics3/mathics-core/issues or even better, try to implement it as a WL module or a Python module, and send us a PR.
Reply all
Reply to author
Forward
0 new messages