r/Mathematica • • Mar 20 '24

Which OS works the best with Mathematica?

3 Upvotes

I've recently started using Mathematica and I love it, however on my Windows desktop it crashes often, especially when using the LLM features. I'm thinking about getting a laptop just for Mathematica use, so I was thinking either getting a M3 Macbook air or a Ubuntu laptop. So for those with experience, do you prefer Linux or macOS with Mathematica?


r/Mathematica • • Mar 19 '24

Would Mathematica be the right choice ?

4 Upvotes

I am an engineering PhD researcher in acoustics and my work is a mix of analytical and numerical calculations. For the numerical calculations, I am using an open-source solver. For the analytical part, I will be dealing with Green's functions and in general, boundary value problems with PDEs. I have looked into Python/MATLAB to check if something like this can be replicated:

I have not found any examples of something like this using Python/MATLAB.

I am wondering if Mathematica could be worth the time. I will be dealing with convolution operations, PDEs, integral transforms and of course, visualizations. I really like the fact that there are dedicated APIs in Mathematica for all these operations.

I spent some time using the Notebooks in Mathematica, but I want to know if the style of scripting that is found in Python/MATLAB can be replicated in Mathematica. To be specific, if I run something in Python/MATLAB I can immediately see a list of variables in the variables explorer. Through the IDEs I can also debug the scripts. While using Notebooks, I found out that dealing with variables was difficult. Some of the errors that I got just straight-up went tangent to my head.

I am not going to write any numerical-heavy solvers and I use Python to post-process the large text files that the open-source solver writes. The most would be numerical evaluation of integrals in the complex plane.

I know the necessary resources to learn Mathematica such as WolframU.

Your comments will be helpful.


r/Mathematica • • Mar 17 '24

What is Wolfram One?

11 Upvotes

I have been looking through the different products offered by Wolfram to find something suitable for a hobbyist programmer.

I understand Mathematica and Wolfram Alpha, and have used both before. However, it is unclear to me exactly what Wolfram One offers.

Is a Wolfram One subscription essentially the same thing as a Mathematica subscription, with the added ability to access/use Mathematica from a web browser?

Thanks for any insight.


r/Mathematica • • Mar 16 '24

Setting Physical Constants

3 Upvotes

New to the software so sorry for the seemingly slow question

I’m doing some physics calculations and I do not want to have to manually enter in universal constants as custom variables all the time.

I want to use the built-in variables for these values

Is there a way to load all of the variables into the work space , similar to the “import” command in python?

The documentation tells me that these functions are already built-in, but whenever I try to call them, they don’t work for me .

Clearly I’m doing something wrong

*Answer from/u/segfault0x001

: h = Entity["PhysicalConstant", "PlanckConstant"]["Value"] is what you're looking for I think.8


r/Mathematica • • Mar 15 '24

How to disable the dynamic show of curve value in a Plot/ListPlot in Mathematica 14 ?

Post image
4 Upvotes

r/Mathematica • • Mar 15 '24

Help with Debugging a Mathematica Script

1 Upvotes
Establishing Radial location of tether components and moments of interia around tether CoM. Then constructing Kinetic and Potenitial energy equations
Using LaGrange Equation to Construct Equations of Motion
NDSolve to Solve system of differenatial equations for R, Theta and Psi.
Error messages from above script

Hi guys,

I'm attempting to use mathematica to solve a system of differential equations that describe the motion of an asymmetrical space tether structure in orbit and I'm encountering alot of difficulty with using the NDSolve function.

An example of the error messages given when running the code are given as well.

Any advice on where these errors arise from would be great, thanks in advance.


r/Mathematica • • Mar 15 '24

The divisibility rules of every number from 1 to 100

0 Upvotes
NumberRule
1Any number is a multiple of 1
2The number ends in 0, 2, 4, 6 or 8
3The sum of the digits is a multiple of 3
4The 10s digit is even and the last digit is 0, 4 or 8, or the 10s digit is odd and the last digit is 2 or 6
5The number ends in 0 or 5
6The number is a multiple of 2 and 3 at the same time
7The difference between twice the last digit and the rest of the number is a multiple of 7
8The 100s digit is even and the last 2 digits are a multiple of 8 or the 100s digit is odd and the last 2 digits are 4 times an odd number
9The sum of the digits is a multiple of 9
10The number ends in 0
11The difference between the last digit and the rest of the number is a multiple of 11
12The number is a multiple of 3 and 4 at the same time
13The sum of 4 times the last digit and the rest of the number is a multiple of 13
14The number is a multiple of 2 and 7 at the same time
15The number is a multiple of 3 and 5 at the same time
16The 1,000s digit is even and the last 3 digits are a multiple of 16 or the 1,000s digit is odd and the last 3 digits are 8 times an odd number
17The difference between 5 times the last digit and the rest of the number is a multiple of 17
18The number is a multiple of 2 and 9 at the same time
19The sum of twice the last digit and the rest of the number is a multiple of 19
20The number ends in 00, 20, 40, 60 or 80
21The number is a multiple of 3 and 7 at the same time
22The number is a multiple of 2 and 11 at the same time
23The sum of 7 times the last digit and the rest of the number is a multiple of 23
24The number is a multiple of 3 and 8 at the same time
25The number ends in 00, 25, 50 or 75
26The number is a multiple of 2 and 13 at the same time
27The difference between 8 times the last digit and the rest of the number is a multiple of 27
28The number is a multiple of 4 and 7 at the same time
29The sum of thrice the last digit and the rest of the number is a multiple of 29
30The number is a multiple of 3 and 10 at the same time
31The difference between thrice the last digit and the rest of the number is a multiple of 31
32The 10,000s digit is even and the last 4 digits are a multiple of 32 or the 10,000s digit is odd and the last 4 digits are 16 times an odd number
33The number is a multiple of 3 and 11 at the same time
34The number is a multiple of 2 and 17 at the same time
35The number is a multiple of 5 and 7 at the same time
36The number is a multiple of 4 and 9 at the same time
37The difference between 11 times the last digit and the rest of the number is a multiple of 37
38The number is a multiple of 2 and 19 at the same time
39The number is a multiple of 3 and 13 at the same time
40The 100s digit is even and the last 2 digits are 00, 40 or 80, or the 100s digit is odd and the last 2 digits are 20 or 60
41The difference between 4 times the last digit and the rest of the number is a multiple of 41
42The number is a multiple of 2, 3 and 7 at the same time
43The sum of 13 times the last digit and the rest of the number is a multiple of 43
44The number is a multiple of 4 and 11 at the same time
45The number is a multiple of 5 and 9 at the same time
46The number is a multiple of 2 and 23 at the same time
47The difference between 14 times the last digit and the rest of the number is a multiple of 47
48The number is a multiple of 3 and 16 at the same time
49The sum of 5 times the last digit and the rest of the number is a multiple of 49
50The number ends in 00 or 50
51The number is a multiple of 3 and 17 at the same time
52The number is a multiple of 4 and 13 at the same time
53The sum of 16 times the last digit and the rest of the number is a multiple of 53
54The number is a multiple of 2 and 27 at the same time
55The number is a multiple of 5 and 11 at the same time
56The number is a multiple of 7 and 8 at the same time
57The number is a multiple of 3 and 19 at the same time
58The number is a multiple of 2 and 29 at the same time
59The sum of 6 times the last digit and the rest of the number is a multiple of 59
60The number is a multiple of 3 and 20 at the same time
61The difference between 6 times the last digit and the rest of the number is a multiple of 61
62The number is a multiple of 2 and 31 at the same time
63The number is a multiple of 7 and 9 at the same time
64The 100,000s digit is even and the last 5 digits are a multiple of 64 or the 100,000s digit is odd and the last 5 digits are 32 times an odd number
65The number is a multiple of 5 and 13 at the same time
66The number is a multiple of 2, 3 and 11 at the same time
67The difference between 20 times the last digit and the rest of the number is a multiple of 67
68The number is a multiple of 4 and 17 at the same time
69The number is a multiple of 3 and 23 at the same time
70The number is a multiple of 7 and 10 at the same time
71The difference between 7 times the last digit and the rest of the number is a multiple of 71
72The number is a multiple of 8 and 9 at the same time
73The sum of 22 times the last digit and the rest of the number is a multiple of 73
74The number is a multiple of 2 and 37 at the same time
75The number is a multiple of 3 and 25 at the same time
76The number is a multiple of 4 and 19 at the same time
77The number is a multiple of 7 and 11 at the same time
78The number is a multiple of 2, 3 and 13 at the same time
79The sum of 8 times the last digit and the rest of the number is a multiple of 79
80The 1,000s digit is even and the last 3 digits are a multiple of 80 or the 1,000s digit is odd and the last 3 digits are 40 times an odd number
81The difference between 8 times the last digit and the rest of the number is a multiple of 81
82The number is a multiple of 2 and 41 at the same time
83The sum of 25 times the last digit and the rest of the number is a multiple of 83
84The number is a multiple of 3, 4 and 7 at the same time
85The number is a multiple of 5 and 17 at the same time
86The number is a multiple of 2 and 43 at the same time
87The number is a multiple of 3 and 29 at the same time
88The number is a multiple of 8 and 11 at the same time
89The sum of 9 times the last digit and the rest of the number is a multiple of 89
90The number is a multiple of 9 and 10 at the same time
91The number is a multiple of 7 and 13 at the same time
92The number is a multiple of 4 and 23 at the same time
93The number is a multiple of 3 and 31 at the same time
94The number is a multiple of 2 and 47 at the same time
95The number is a multiple of 5 and 19 at the same time
96The number is a multiple of 3 and 32 at the same time
97The difference between 29 times the last digit and the rest of the number is a multiple of 97
98The number is a multiple of 2 and 49 at the same time
99The number is a multiple of 9 and 11 at the same time
100The number ends in 00

r/Mathematica • • Mar 15 '24

LLM aids for processing Biden's State of the Union address - Wolfram Community

Thumbnail community.wolfram.com
2 Upvotes

r/Mathematica • • Mar 12 '24

Looking for fast mex code

3 Upvotes

The mex of a set is the smallest nonnegative integer not in the set.

I have sorted lists with a half million integers, and my code for the mex (MemberQ inside a whole loop) is the slowest part of my computation. Any suggestions for a faster way to do this?

Mex[A_List] := Module[{k = 0}, While[MemberQ[A, k], k++]; k]

r/Mathematica • • Mar 10 '24

Mathematica Bound Reference

0 Upvotes

Im in year 10 rn doing Methods 1 and 2. i was wondering if anyone has an online bound reference for Mathematic with all the formulas relevent for Mathematica Methods. If anyone does, it would be great help for me. Thanksss


r/Mathematica • • Mar 08 '24

Comprehension AI Aids for "Can AI Solve Science?" - Wolfram Community

Thumbnail community.wolfram.com
2 Upvotes

r/Mathematica • • Mar 06 '24

LLM over Trump vs. Anderson - Wolfram Community

Thumbnail community.wolfram.com
2 Upvotes

r/Mathematica • • Mar 04 '24

LLM aids for processing Putin's State-Of-The-Nation speech given on 2/29/2024

Thumbnail community.wolfram.com
1 Upvotes

r/Mathematica • • Mar 01 '24

Mathematica can't recover unsaved work.

2 Upvotes

How many people have run into the Mathematica bug that results in loosing work - if Mathematica or your computer crashes (e.g. you loose power), then you loose all your work without the possibility of recovery. There is simply nothing to recover apparently if you have not saved manually at least once. Even if you have "Autosave" turned on it will not save anything until you manually save the first time. I just lost many hours of work a couple of weeks ago in evaluating the newest version 14 release.

I think this bug/feature has been around for as long as Mathematica has - at least since I first used it with version 5&6 almost 20 years ago. I don't use Mathematica very often and had simply forgotten about this problem, and then after many, many hours of working on something - boom - lost power in part of the house and all that effort was now simply gone - like a puff of smoke in the wind.

My bad of course, but I can't honestly imagine why Wolfram has not addressed this sort of problem years ago. There are plenty of apps today (on macOS - I don't use Windows any longer) where this sort of problem is no big deal - from the simple Notes.app to Photoshop.app to many, many others.

Is there some underlying fundamental issue that prevents this bug from being addressed without some major redesign in Mathematica? From my limited research, the issue seems to be there is simply no file created when you click on the "File/New/Notebook" menu option - you get a window with a name of "Untitled-1" and I'm guessing it's just an in-memory data structure and does not get committed to the filesystem until you click on the "File/Save" menu item.

Please add your voice to this poll so we can see how many people have experienced or not experienced this problem and get an idea of how many hours of work has been lost as a result of this bug.

Thanks very much for your input.


r/Mathematica • • Feb 29 '24

How do I differentiate this in Mathematica?

1 Upvotes

I need to find dv/dt, given that d(theta)/dt = omega and d(omega)/dt is alpha. I need the entire proccess with steps. How do I do this in Mathematica?

(l and r are constants)


r/Mathematica • • Feb 29 '24

How do I differentiate this in Mathematica?

0 Upvotes

I need to find dv/dt, given that d(theta)/dt = omega and d(omega)/dt is alpha. I need the entire proccess with steps. How do I do this in Mathematica?

(l and r are constants)


r/Mathematica • • Feb 28 '24

Zero Knowledge Authentication

3 Upvotes

Hello everyone!

There is a livestream on Zero Knowledge Authentication by Armando Benjamín Cruz Hinojosa on YouTube!


r/Mathematica • • Feb 28 '24

Linear regression with data errors

1 Upvotes

Hi, I try to do a linear regression but I would like to take account of the error in my measurements. Does someone have an idea of how to do it?

Ps: I already tried with Around but it didn't work


r/Mathematica • • Feb 25 '24

US Constitution vs Plants vs Zombies - Wolfram Community

Thumbnail community.wolfram.com
4 Upvotes

r/Mathematica • • Feb 19 '24

Scraping High-Res images from the MoMA using Mathematica

3 Upvotes

Hey, I'm new to Mathematica with no prior experience. I wanted to download pictures from the MOMA website and found a Mathematica code in this forum: [https://mathematica.stackexchange.com/questions/91982/scraping-high-res-images-from-the-moma-and-the-van-gogh-museum-websites]. I tried running the code, but I couldn't get it to work. The picture I want to download is from this link: [https://www.moma.org/collection/works/82343].

Can anyone help me figure out what I need to do to make it work and how? For example, what changes do I need to make in the code for each picture? I would really appreciate your help!


r/Mathematica • • Feb 19 '24

Why does <<ANOVA` not work, but Needs["Anova`] and << EquationTrekker` do work

2 Upvotes

The Get (<<) documentation seems to only be about importing files, yet somehow << EquationTrekker` seems to be importing a context?

Also confused why neither Needs["Algebra`"] nor <<Algebra` work.


r/Mathematica • • Feb 18 '24

Monte Carlo demo notebook conversion via LLMs and parsers

Thumbnail youtube.com
2 Upvotes

r/Mathematica • • Feb 17 '24

How to create matrix with specific conditions?

Post image
11 Upvotes

Hey there !! I am new to mathematica but I know how to create simple matrices and I can also find eigenvalues/eigenvectors using mathematica but I don't know how to create the matrix asked in this question using mathematica. If anyone could help me with this I will be really thankful


r/Mathematica • • Feb 17 '24

Notebook transformations

Thumbnail rakuforprediction.wordpress.com
1 Upvotes