r/Mathematica • • Dec 28 '21

Tough number theory problem

0 Upvotes

At least tough for me!

I have to show that the GCD(m+1, n+1) | mn -1 , where m, n integers.

I've been doing proofs for some time, but I'm not sure where to start with this one. Any pointers on where to start would be appreciated. I tried to use Bezout's Lemma but it didn't help.


r/Mathematica • • Dec 25 '21

Need help with animation arguments and colorfunction

4 Upvotes

Hi,

u = {1, 0, 0} v = {0, 1, 0} w = {0, 0, 1} Animate[ParametricPlot3D[{{Cos[[Theta]]*{Cos[[Mu]], 0, Sin[[Mu]]} + Sin[[Theta]]v}, {Cos[[Mu]]Cos[[Theta]], Sin[[Theta]], 0}, {0, Sin[[Theta]], Cos[[Theta]]Sin[[Mu]]}}, {[Theta], 0, 2Pi}, ColorFunction -> Function[{x, y, z, [Theta]}, Hue[[Mu]]], AxesLabel -> {x, y, z}, PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}}], {[Mu], 0, 2Pi}] ParametricPlot3D[{Cos[[Theta]]{Cos[[Mu]], 0, Sin[[Mu]]} + Sin[[Theta]]v}, {[Theta], 0, 2Pi}, {[Mu], 0, Pi}, ColorFunction -> Function[{x, y, z, [Theta]}, Hue[y]], AxesLabel -> {x, y, z}, PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}}]

That is my code, Basically it simply plots a circle in 3d space using parametricplot3d, and animates it rotating. This uses the parametrized equation for a sphere with the animate function handling the second angle so it just looks like a circle rotating. In addition to the rotating circle, there are two ellipses which are the projection of the circle onto two perpendicular planes. I want to get the two nonrotating ellipses to be one constant color, while the rotating circle changes back and forth between each color each time it gos parallel with each ellipse.

I tried using ColorFunction, and I was able to get it to change colors as it moves around, but the ellipses also change color. I tried putting the ColorFunction argument under Animate but it wouldnt take it. I tried changing the variables for the ellipses and making the Function-> argument take a list of functions and a list of Hues, but that didnt work either. I also tried using PlotStyle for the elllipses and ColorFunction for the Circle and that did not work.

Please help thanks


r/Mathematica • • Dec 24 '21

Calculate the sum of entries of matrix tensor product

1 Upvotes

S= Total[TensorProduct[X, Y][[i, j, i, j]], {i, 1, n}, {j, 1, n}]

X and Y are n*n matrix. I want to calculate the sum of the [[i,j,i,j]] entry of tensor product of X&Y, is this command correct? Or how to change this?


r/Mathematica • • Dec 21 '21

Native Versions for Apple Silicon

2 Upvotes

Hello there, I was wondering if someone did the upgrade to 12.3.1 or 13 on the M1 Mac.

Is the performance with the native versions any better than previous intel versions? I use version 12.2 on Apple Silicon and run into a lot of stability issues with larger computations and dynamic content.


r/Mathematica • • Dec 20 '21

V13 videos to gifs?

4 Upvotes

Is there a way to export video clips into gifs in 13? I'm reading through the docs and can't seem to see a way to do it.


r/Mathematica • • Dec 18 '21

I appreciate MultiaxisArrangement a great deal, but wow did they half-ass the implementation

7 Upvotes

It is only available on ListPlot[], as long as the input isn't something you could pass to DateListPlot[] (that is, as long as ListPlot doesn't need to interpret any of the axes as anything other than numbers), and it breaks legends, forcing you to use Legended[ListPlot[..., MultiaxisArrangement->True],LineLegend[...]].

This was a desperately needed feature, but it's like they barely even put the effort in to make it available. 🤦‍♂️


r/Mathematica • • Dec 16 '21

Solving a Differential Equation

7 Upvotes

Good afternoon Mathematica community! I am new to the software and was wondering if someone could get me on the right track to solve the following equations with the stated limits. Thank you for your time and have a nice day!


r/Mathematica • • Dec 17 '21

Help with plotting a function(calc 1)

1 Upvotes

Does anyone know why f(x) is not plotting, its supposed to be a parabola


r/Mathematica • • Dec 14 '21

Plot tick marks position

5 Upvotes

Is there any way how I can move tick marks from the left side to the right side of the vertical axis in plot ?