/r/Mathematica
For information and tips about Mathematica features.
related reddits:
/r/Mathematica
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
My Mathematica notebooks are heavy and take a lot of procession power. However on the activity monitor the wolfram kernel never exceeded 100% cpu, which I think means only one core is being used. How can I allow the app to use 4 cores on the system rather than one?
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.
Number | Rule |
---|---|
1 | Any number is a multiple of 1 |
2 | The number ends in 0, 2, 4, 6 or 8 |
3 | The sum of the digits is a multiple of 3 |
4 | The 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 |
5 | The number ends in 0 or 5 |
6 | The number is a multiple of 2 and 3 at the same time |
7 | The difference between twice the last digit and the rest of the number is a multiple of 7 |
8 | The 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 |
9 | The sum of the digits is a multiple of 9 |
10 | The number ends in 0 |
11 | The difference between the last digit and the rest of the number is a multiple of 11 |
12 | The number is a multiple of 3 and 4 at the same time |
13 | The sum of 4 times the last digit and the rest of the number is a multiple of 13 |
14 | The number is a multiple of 2 and 7 at the same time |
15 | The number is a multiple of 3 and 5 at the same time |
16 | The 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 |
17 | The difference between 5 times the last digit and the rest of the number is a multiple of 17 |
18 | The number is a multiple of 2 and 9 at the same time |
19 | The sum of twice the last digit and the rest of the number is a multiple of 19 |
20 | The number ends in 00, 20, 40, 60 or 80 |
21 | The number is a multiple of 3 and 7 at the same time |
22 | The number is a multiple of 2 and 11 at the same time |
23 | The sum of 7 times the last digit and the rest of the number is a multiple of 23 |
24 | The number is a multiple of 3 and 8 at the same time |
25 | The number ends in 00, 25, 50 or 75 |
26 | The number is a multiple of 2 and 13 at the same time |
27 | The difference between 8 times the last digit and the rest of the number is a multiple of 27 |
28 | The number is a multiple of 4 and 7 at the same time |
29 | The sum of thrice the last digit and the rest of the number is a multiple of 29 |
30 | The number is a multiple of 3 and 10 at the same time |
31 | The difference between thrice the last digit and the rest of the number is a multiple of 31 |
32 | The 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 |
33 | The number is a multiple of 3 and 11 at the same time |
34 | The number is a multiple of 2 and 17 at the same time |
35 | The number is a multiple of 5 and 7 at the same time |
36 | The number is a multiple of 4 and 9 at the same time |
37 | The difference between 11 times the last digit and the rest of the number is a multiple of 37 |
38 | The number is a multiple of 2 and 19 at the same time |
39 | The number is a multiple of 3 and 13 at the same time |
40 | The 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 |
41 | The difference between 4 times the last digit and the rest of the number is a multiple of 41 |
42 | The number is a multiple of 2, 3 and 7 at the same time |
43 | The sum of 13 times the last digit and the rest of the number is a multiple of 43 |
44 | The number is a multiple of 4 and 11 at the same time |
45 | The number is a multiple of 5 and 9 at the same time |
46 | The number is a multiple of 2 and 23 at the same time |
47 | The difference between 14 times the last digit and the rest of the number is a multiple of 47 |
48 | The number is a multiple of 3 and 16 at the same time |
49 | The sum of 5 times the last digit and the rest of the number is a multiple of 49 |
50 | The number ends in 00 or 50 |
51 | The number is a multiple of 3 and 17 at the same time |
52 | The number is a multiple of 4 and 13 at the same time |
53 | The sum of 16 times the last digit and the rest of the number is a multiple of 53 |
54 | The number is a multiple of 2 and 27 at the same time |
55 | The number is a multiple of 5 and 11 at the same time |
56 | The number is a multiple of 7 and 8 at the same time |
57 | The number is a multiple of 3 and 19 at the same time |
58 | The number is a multiple of 2 and 29 at the same time |
59 | The sum of 6 times the last digit and the rest of the number is a multiple of 59 |
60 | The number is a multiple of 3 and 20 at the same time |
61 | The difference between 6 times the last digit and the rest of the number is a multiple of 61 |
62 | The number is a multiple of 2 and 31 at the same time |
63 | The number is a multiple of 7 and 9 at the same time |
64 | The 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 |
65 | The number is a multiple of 5 and 13 at the same time |
66 | The number is a multiple of 2, 3 and 11 at the same time |
67 | The difference between 20 times the last digit and the rest of the number is a multiple of 67 |
68 | The number is a multiple of 4 and 17 at the same time |
69 | The number is a multiple of 3 and 23 at the same time |
70 | The number is a multiple of 7 and 10 at the same time |
71 | The difference between 7 times the last digit and the rest of the number is a multiple of 71 |
72 | The number is a multiple of 8 and 9 at the same time |
73 | The sum of 22 times the last digit and the rest of the number is a multiple of 73 |
74 | The number is a multiple of 2 and 37 at the same time |
75 | The number is a multiple of 3 and 25 at the same time |
76 | The number is a multiple of 4 and 19 at the same time |
77 | The number is a multiple of 7 and 11 at the same time |
78 | The number is a multiple of 2, 3 and 13 at the same time |
79 | The sum of 8 times the last digit and the rest of the number is a multiple of 79 |
80 | The 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 |
81 | The difference between 8 times the last digit and the rest of the number is a multiple of 81 |
82 | The number is a multiple of 2 and 41 at the same time |
83 | The sum of 25 times the last digit and the rest of the number is a multiple of 83 |
84 | The number is a multiple of 3, 4 and 7 at the same time |
85 | The number is a multiple of 5 and 17 at the same time |
86 | The number is a multiple of 2 and 43 at the same time |
87 | The number is a multiple of 3 and 29 at the same time |
88 | The number is a multiple of 8 and 11 at the same time |
89 | The sum of 9 times the last digit and the rest of the number is a multiple of 89 |
90 | The number is a multiple of 9 and 10 at the same time |
91 | The number is a multiple of 7 and 13 at the same time |
92 | The number is a multiple of 4 and 23 at the same time |
93 | The number is a multiple of 3 and 31 at the same time |
94 | The number is a multiple of 2 and 47 at the same time |
95 | The number is a multiple of 5 and 19 at the same time |
96 | The number is a multiple of 3 and 32 at the same time |
97 | The difference between 29 times the last digit and the rest of the number is a multiple of 97 |
98 | The number is a multiple of 2 and 49 at the same time |
99 | The number is a multiple of 9 and 11 at the same time |
100 | The number ends in 00 |
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]
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
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.
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)
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)
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
Hello everyone!
There is a livestream on Zero Knowledge Authentication by Armando Benjamín Cruz Hinojosa on YouTube!
Why is it evaluating to false even though the signal is clearly even.
How can I define and find A in Mathematica? Plss t~t
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!
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.
Hey everyone! I am in a Differential Equations class and we are working on an assignment using Mathematica. I have been running into a few issues with it when trying to use the DSolve. I am to solve the inital value problem { (dh/dt) = −0.25h^2 + 1.25h − 1.3125, h(0) = 0.5 When I go to compute it I keep getting errors regarding 0.25 not being a valid variable. If anyone could help that would be great. I have attached an image of the error.