Multi-column table with Mathics?

44 views
Skip to first unread message

Lonnie Cumberland

unread,
Nov 23, 2019, 4:06:29 PM11/23/19
to mathics-users
Hi All,

I am new to Matics and have just installed it on my local Debian system after which I started up the mathicsserver and it is running very nicely from what I can see so far.

One of the reasons for testing out Mathics is that I am doing a bit of Number Theory research and think that Mathics might be useful in this way.

I would like to be able to make some calculations and have them output in a multi-column table, but cannot see how to do this in the documentation that I am still just now digging though.

Perhaps it would output maybe 5 columns with the first column being a row number that is used in each of the columns on that row. Another layout might be for a simple multiplication table to be generated, but I do not know how to iterate over things yet.

Can someone please assist in showing me a simple example on this?

Any assistance would be greatly appreciated.
Thanks
Lonnie

George

unread,
Nov 23, 2019, 4:15:17 PM11/23/19
to mathic...@googlegroups.com
Search the Wolfram Mathematica documentation for Table[] since much of the syntax is identical to 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/971a8bde-7e87-4240-af57-ad2e3ab33d88%40googlegroups.com.

Lonnie Cumberland

unread,
Nov 23, 2019, 5:25:34 PM11/23/19
to mathic...@googlegroups.com
Thanks for the tip, Geoge.

I'll look into it more.

A quick search found:




and 

MultiColumn : https://reference.wolfram.com/language/ref/Multicolumn.html (Which I do not think that Mathics has implemented)

I will actually just want a table, probably close to the layout of the multiplication table above but for some very different calculations and will need to read the Mathics documentation more to see if it currently has a "Grid" function that can be used with a Table function


image.png

Out[1]=

Thanks again and have a good weekend
Lonnie

Lonnie Cumberland

unread,
Nov 24, 2019, 12:30:47 PM11/24/19
to mathic...@googlegroups.com
Hi All,

I am really starting to enjoy using Mathics and I cannot believe that I did not start using it much earlier as it has already saved me a lot of time over using simple spreadsheets with xnumber add-in that has many limitations.

Now, as an example, I am able to generate a table

image.png

But for what I want to do, I need to add column and row headers (i.e. numbers 1 -> 10).  Of course, the function that I am dealing with is different than a multiplication type table above, but the question is how to add column and row number. For example, my row headers will be numbers 1 -> 10 and my column headers will be generated from the Prime[i] for i=1 -> 10, for example.  I am already generate my table with the function that I am testing, but just need to see how to add these headers. Maybe I will look into formatting the table later with borders blocking off the column and row header values.

Does anyone have any idea on how to go about this? 
Thanks in advance
Lonnie

Lonnie Cumberland

unread,
Nov 24, 2019, 12:43:32 PM11/24/19
to mathic...@googlegroups.com
Hi All,

Just as a follow up, I was trying to make a table perhaps similar to something like this:

image.png



But this does not seem to work in Mathics as I just seem to get the data and not the row and column headers.

Any ideas?
Thanks in advance
Lonnie

George

unread,
Nov 24, 2019, 1:40:12 PM11/24/19
to mathic...@googlegroups.com
I stopped using Mathics because it was missing too many Mathematica features, personally. You can try inputting the formula to the Wolfram Alpha website to see if it runs. Sometimes they do. 

Sorry, I know the frustration though. I love Mathematica, but that license fee is beyond my budget. I know Python 3 with its scientific computing libraries is gaining popularity as the free alternative, especially in the Jupiter notebook format such as Google Colab. It’s not as nice and symbolic, but it can do all the same stuff. You might tinker with that some time, as it has a much bigger community, much much bigger. It’s all the rage in the machine learning space.

Lonnie Cumberland

unread,
Nov 24, 2019, 5:39:02 PM11/24/19
to mathic...@googlegroups.com
Hi George,

Yea, mathematica is rather expensive and I am in the same situation as you.  I know C/C++ and a few others while only played around with Python just a bit so I might look into it more as it seems that there may be a few inconsistencies that I am noticing with Mathics. Don't get me wrong, its a very good piece of software, but I think that it still needs a fair amount of maturity to go before it is ready for prime time. I was doing some simple very large exponent modulus based calculations and they just do not seem right to me although I will need to check them with another source still since as you know, number theory and especially large integer factorization and discrete logarithm stuff use very large numbers indeed.

Anyway, thanks again.
Lonnie 
 

Barry Carter

unread,
Nov 26, 2019, 7:37:19 AM11/26/19
to mathic...@googlegroups.com
Not sure how helpful this is, but wolframcloud.com has a free service tier and
runs actual Mathematica code (which they are now calling the Wolfram language
or something). I have the free service tier and have attached a
screenshot. Notes:

- You can use semicolons to suppress output and enter multiple commands in
one "box". I did neither for demonstrative purposes.

- The resulting table does not have horizontal and vertical lines like your
table did. This might be fixable by tweaking the code.

I have real Mathematica myself, so I don't use wolframcloud.com much. I'd
hoped to use it help students or for live video streaming how to work on
certain problems, but I haven't actually done either of those.

On Sun, 24 Nov 2019, Lonnie Cumberland wrote:

> Date: Sun, 24 Nov 2019 17:38:48 -0500
> From: Lonnie Cumberland <lon...@outstep.com>
> Reply-To: mathic...@googlegroups.com
> To: mathic...@googlegroups.com
> Subject: Re: Multi-column table with Mathics?
>
> Hi George,
>
> Yea, mathematica is rather expensive and I am in the same situation as
> you. I know C/C++ and a few others while only played around with Python
> just a bit so I might look into it more as it seems that there may be a few
> inconsistencies that I am noticing with Mathics. Don't get me wrong, its a
> very good piece of software, but I think that it still needs a fair amount
> of maturity to go before it is ready for prime time. I was doing some
> simple very large exponent modulus based calculations and they just do not
> seem right to me although I will need to check them with another source
> still since as you know, number theory and especially large integer
> factorization and discrete logarithm stuff use very large numbers indeed.
>
> Anyway, thanks again.
> Lonnie
>
>
> On Sun, Nov 24, 2019 at 1:40 PM George <hipp...@gmail.com> wrote:
>
>> I stopped using Mathics because it was missing too many Mathematica
>> features, personally. You can try inputting the formula to the Wolfram
>> Alpha website to see if it runs. Sometimes they do.
>>
>> Sorry, I know the frustration though. I love Mathematica, but that license
>> fee is beyond my budget. I know Python 3 with its scientific computing
>> libraries is gaining popularity as the free alternative, especially in the
>> Jupiter notebook format such as Google Colab. It?s not as nice and
>> symbolic, but it can do all the same stuff. You might tinker with that some
>> time, as it has a much bigger community, much much bigger. It?s all the
>>>>>>> <https://groups.google.com/d/msgid/mathics-users/971a8bde-7e87-4240-af57-ad2e3ab33d88%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> 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/CAK2sxKLVEdq1yDUyE7M1%2ByWWDAKwXv_NSYS_d8hn-cg8wSCKVw%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/mathics-users/CAK2sxKLVEdq1yDUyE7M1%2ByWWDAKwXv_NSYS_d8hn-cg8wSCKVw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>> 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/CAPmsJLD9gws922z%3D%2BF0VLqANbuttpRRRfcQqUGEaK0f%2B%2BAucpw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/mathics-users/CAPmsJLD9gws922z%3D%2BF0VLqANbuttpRRRfcQqUGEaK0f%2B%2BAucpw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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/CAK2sxKL3Ug4nCiSV2wt9njxSz2MbyKD4M7oMKp%2BGAaKaDbjJyg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/mathics-users/CAK2sxKL3Ug4nCiSV2wt9njxSz2MbyKD4M7oMKp%2BGAaKaDbjJyg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> 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/CAPmsJLCT2aPjhY2HcGmr%2BCCPi1iupwVYEhuytUco5WKoRh37Tg%40mail.gmail.com.
>
attach1.png
Reply all
Reply to author
Forward
0 new messages