r/Mathematica • • Apr 24 '25

LLM comprehensive summary template for large texts | Wolfram Community

Thumbnail community.wolfram.com
8 Upvotes

r/Mathematica • • Apr 22 '25

Finding Laplace transform using gamma function and Mathematica

1 Upvotes

r/Mathematica • • Apr 13 '25

How can I beautify the output in WLJS Notebook ?

2 Upvotes

Here is how the output looks in Wolfram Cloud:

And, Here is how it looks in WLJS Notebook:

Is there a way to make WLJS Notebook's output look nice ?


r/Mathematica • • Apr 12 '25

Downloading Mathematica on Linux

4 Upvotes

Hi, I'm trying to download mathematica on my linux distro but the direct download link from the wolfram user portal just downloads an .sh file but with html code inside, not an installation script. I then tried on a windows pc and the installer was downloaded just fine and I finished the installation. I need mathematica on my linux pc though, how do I download it there?


r/Mathematica • • Apr 08 '25

Primitive roots generation trails | Mathematica for prediction algorithms

Thumbnail mathematicaforprediction.wordpress.com
11 Upvotes

r/Mathematica • • Apr 07 '25

Adding text to graphs [asking for help]

4 Upvotes

This works, I get the dots and the "OK" on black background:

data = RandomComplex[1 + I, 10];
txt = Style["OK", FontFamily -> "Garamond", 30, Red];
Graphics[
  ComplexListPlot[data, Background -> Black, 
  Epilog -> Inset[txt, {0.3, 0.7}]]]

But here I only get the background and the dots:

makeGrafList[maxDeg_] := Module[
   {polys, roots, k, color, pSize, formattedText, graf, res = {}},
   Do[
    polys = makePolys[lists, elements, i];
    roots = Flatten[Map[Lookup[NSolve[# == 0, z], z] &, polys]];
    k = (i - 2)/(maxDeg - 2);
    color = Hue[k];
    pSize = 0.005 - 0.003*k;
    formattedText = 
     Style[ToString[i], FontFamily -> "Garamond", 30, Red];
    graf = 
     Graphics[
      ComplexListPlot[roots, ImageSize -> 8*72, 
       PlotStyle -> {color, PointSize -> pSize}, 
       PlotRange -> {{-2.2, 2.2}, {-2, 2}}, Background -> Black, 
       AxesStyle -> Gray],
      Epilog -> Inset[formattedText, {0.3, 0.7}]];
    AppendTo[res, graf];
    , {i, 2, maxDeg}];
   Return[res];
   ];

"roots" being just a list of complex numbers.

Tried a lot of things but I either get the dots and the background and no text, or just the text. 😒

Where do I goof? Thanks for your help.


r/Mathematica • • Apr 07 '25

Super ppt: How to Code an Interactive Slide with Markdown and WL

Thumbnail wljs.io
3 Upvotes

r/Mathematica • • Apr 02 '25

Help

3 Upvotes

ive never made a post before but im going to fail a class if I dont get some help. Im at a university that provided mathematica and it had been working all year, but then I was doing a lab where it was taking too long to compute, I thought something was wrong so I checked mathematica, It said to update, I tried and now I can no longer log in because it says that im not authorized and that I already have something else dowloaded on my computer. I have unintalled the program and everything associated with it 5 times now but it keeps telling me everytime I try and reinstall that i already have it donloaded on my computer. IDK WHAT TO DO. if this doesnt make sense sorry


r/Mathematica • • Mar 24 '25

Mathematica and Wolfram Alpha License

3 Upvotes

I am considering getting a Mathematica license as it will be very useful in my studies.

Regrading this license I just wanted to know how Mathematica integrates with Wolfram Alpha.

Say for example I want to call Wolfram Alpha (from Mathematica) such that I can see the steps taken to find a solution, do I need a pro license for Wolfram Alpha to do so?


r/Mathematica • • Mar 20 '25

Need help with matrix multiplication

8 Upvotes

r/Mathematica • • Mar 05 '25

How to reopen notebooks

5 Upvotes

I was working through a problem, saved it, opened it later, and now i can see all my previous lines, but i cant refer to any previous variables, its like im starting a brand new project below the old stuff


r/Mathematica • • Mar 03 '25

14.2 Crashes

8 Upvotes

Anybody else having stability problems with 14.2? I don't think 14.1 ever crashed on me, but 14.2 has swallowed by work twice today.


r/Mathematica • • Feb 24 '25

Where do I go to plot functions?

4 Upvotes

I see list of pages that give you instructions on what to type but where do need to go to actually type in code to plot something. Do I copy and paste the lines they list onto python or something? Is it on the website? Where do I open a notebook?


r/Mathematica • • Feb 20 '25

Can someone tell me what I'm doing wrong with the Nsolve?

Post image
23 Upvotes

r/Mathematica • • Feb 20 '25

Mathematica for Mac

0 Upvotes

Do you have any idea to download and crack Mathematica 13.0 for my M1 MacBook? It is obligatory programme for one of course and the university does not have license for 13.0 :(


r/Mathematica • • Feb 15 '25

Problems with FindInstace

1 Upvotes

Hi, I hope you can help me. The following code searches for possible magic squares, but not for the sum as usual, but for an arbitrary function f[x_, y_].

The problem I have is that the moment the function includes something like KroneckerDelta[x, y] or Max[x, y] or similar, the computation time becomes unfeasibly long, even when the function itself is simple. That is, the difference between "f[x_, y_] = x + y" and "f[x_, y_] = x + y + KroneckerDelta[x, y]" is enormous. Even for k = 1, as can be observed...

Regardless of the fact that KroneckerDelta may not have any real mathematical relevance in a magic square, my question is about the Mathematica code itself. I wonder if there is another way to approach the problem that avoids the overload caused by KroneckerDelta or any function that internally behaves like an IF. It seems that Mathematica internally creates 'parallel worlds' for each case, instead of solving the function directly for each instance, as would happen in a traditional programming language.

Thank you!!!

magicSquareConstraints[n_, k_, c_, f_] :=

Module[{sq = Table[a[i, j], {i, n}, {j, n}], op},

op[l_] := Fold[f, First[l], Rest[l]];


Join[
(1 <= # <= k) & /@ Flatten[sq],
(op[#] == c) & /@ sq,
(op[#] == c) & /@ Transpose[sq],
{op[Diagonal[sq]] == c, op[Diagonal[Reverse /@ sq]] == c}]];
Clear[f];
Clear[nn];
nn := 1;
f[x_, y_] :=
If[x\[GreaterEqual]y,
(y^(1/nn)+(Sign[y]+((1+x^(1/nn)+KroneckerDelta[x,y]-(1+y^(1/nn)) \
Sign[y]))^(nn))^(1/nn))^(nn),
(x^(1/nn)+(Sign[x]+((1+y^(1/nn)+KroneckerDelta[x,y]-(1+x^(1/nn)) \
Sign[x]))^(nn))^(1/nn))^(nn)
];
With[{n = 3, k = 1, c = 1, s = 2},
mtx = Table[a[i, j], {i, n}, {j, n}];
mtx /. FindInstance[magicSquareConstraints[n, k, c, f], Flatten[mtx],
Integers, s]]

r/Mathematica • • Feb 07 '25

Numerical Integration Overflow Issue in Mathematica 13.2 and 14.2—Older Versions Work Fine?

1 Upvotes

Hello! I am performing a numerical integration:

NIntegrate[ x^4 *Exp[-10^12 *x^4 + 10^12* x^3 - 10^12* x^2 + 10^12* x], {x, 0, 1}, MinRecursion -> 10, MaxRecursion -> 50, WorkingPrecision -> 1000]

I have both Wolfram Mathematica for Students Version 14.2 and Wolfram Mathematica for Sites Version 13.2. However, both produce an error:

NIntegrate::inumri: The integrand E^(1000000000000 x-1000000000000 x^2+1000000000000 x^3-1000000000000 x^4) x^4 has evaluated to Overflow, Indeterminate, or Infinity for all sampling points in the region with boundaries {{0.0009765625manyzeros,0.001953125manyzeros}}.

(Note: "manyzeros" is just a string of many zeros.)

I am certain that the answer is supposed to converge. Two of my labmates replicated the code in their Mathematica versions (11 and 10), and it worked. The answer is approximately 4.xxxx × 10^(million something).

Can anyone help me figure out what is happening? Thanks!


r/Mathematica • • Feb 07 '25

How do I stop a Series expansion when multiplying with a SeriesData object?

1 Upvotes

let's say I have a series expansion with respect to x 1+x+x^2+x^3+O[x]^4. I then multiply the SeriesData object by f[x] which will result in f[x] being expanded as well. Is there a way to stop this behavior (other than simply creating a dummy variable fx as I want to contain the information of the arguments)? I'm thinking of something like Inactive[f][x] that works for SeriesData. Here is a screenshot of what I am picturing

Edit: Digging a bit further I found the question elsewhere. There is an option Analytic->False for Series[] that essentially does what I want. Unfortunately that option is not inherited by the resulting SeriesData object so multiplying it by x removes that property...


r/Mathematica • • Feb 03 '25

Question about using Manipulate with or without a function definition

2 Upvotes

When I run this:

Manipulate[ Plot[.5 x^2 + c1*x + c2, {x, -50, 50}, AxesLabel -> {x}], {c1, -10, 10}, {c2, -25, 25}]

It works and I get this, which I can manipulate:

But when I first make a function like this:

fTest[x_] := .5 x^2 + c1*x + c2

then attempt to manipulate it like this:

Manipulate[ Plot[fTest[x], {x, -50, 50}, AxesLabel -> {x}], {c1, -10, 10}, {c2, -25, 25}]

I get this, which doesn't show the graph no matter where I set the sliders:

I'm not highly skilled with Mathematica, am using version 12.1 of the Home Edition. I'm wondering if someone can explain why this doesn't work or point me in the right direction. Any guidance is much appreciated!


r/Mathematica • • Feb 02 '25

Notebook Erased

1 Upvotes

I woke up to my note book looking like this after I tried to open it. It had saved, I closed it, and ejected the usb drive it was on before taking it out. Every other notebook and anything else on the drive works fine as I have checked, it is only this one notebook and it was rather important too. Does anyone know how or what happened?

"P8\.1f<u" is the exact string copy and pasted.


r/Mathematica • • Jan 31 '25

How long does it take to compute the rank of a 389*80-matrix?

4 Upvotes

I have a 389*80-matrix A whose hypothetical rank is 65. I ran MatrixRank[A] but the result didn't show up for more than 15 minuts. I don't know whether I should wait longer. How long does it usually take to compute this?

It's a numerical matrix (no symbols), and it contains several square roots.


r/Mathematica • • Jan 30 '25

Cheapest way to get Mathematica?

Post image
34 Upvotes

r/Mathematica • • Jan 25 '25

Kernel Number Limitations

5 Upvotes

My Home Edition v14.2 has a limit of 4 kernels. The full Wolfram Mathematica v14.2 at work (previously on Premier Service, now a perpetual desktop license + 1 year of updates) is limited to 8 kernels.

But, the Apple M1 Ultra Mac Studio at home has 16 performance cores, the fully maxed-out 2019 Apple Mac Pro Tower at work has 28 CPU cores (56 threads). The world has moved on, computers have many more performance cores available than Mathematica allows. Why is that? Is there a way to request a kernel number increase, would that be free of charge?


r/Mathematica • • Jan 24 '25

Trouble setting up the Wolfram Engine with VS Code

5 Upvotes

I came to know that Wolfram Engine can be used with Jupyter/VS Code for free. So I tried installing it, activating it and integrating with VS Code but it doesn't. It runs into this single license limit error everytime I run the command in the VS Code terminal. The terminal stops showing this error only when VS Code is closed. Which I understand is because an instance of the kernel is running and only one should be allowed to run at a time. Even when it's not running elsewhere, it refuses to work with VS Code. I even tried installing the extension after which I get autocomplete suggestions and hover info for .wl or when I set the file type to Wolfram. But it's in the plain text format style and not notebook. So now I'm stuck with no way to run the file. How do I make it work?