# All Questions

80,709 questions
Filter by
Sorted by
Tagged with
24 views

### N on equation with numbered variables [duplicate]

Say I have a system of polynomial equations in the variables x[1],...,x[n]. Sometimes want to make such equations numerical (as in: the coefficients become floats) ...
45 views

### How to solve this system of equations in Wolfram Alpha? [closed]

I want to solve P0 + t0 * V0 + t2 * V2 == P1 + t1 * V1 for t0, t1 and t2, which are scalars, whereas the uppercase variables ...
23 views

### CDF is not working in webpage

This is the first time when I am trying to put my interactive dashboard into my website. But it is not working. These Ways I followed: 1- Save the .nb file to .CDF file format. 2- Use the "...
42 views

### Densityplot with two argument function

I want to plot the heat map of a two-variable function which has two arguments, but the function is continuous on the transition line. However, the densityplot put no color on the transition line. ...
119 views

### How do I avoid the singularities during the calculation of an integral?

I face a serious problem when I try to calculate the following integral. My code is the following: ...
55 views

### NBodySimulation softening parameter

I'm simulating the orbit of a binary black hole immersed in some halo of particles and the simulation does not want to continue on for the specified amount of time. It always halts at a seemingly ...
51 views

### Probit with Equality Constraint

I have a set of data that I analyze using a probit model. However, because of the way that the data are produced, the effect of two variables should be equal. Say, it is a room tilting down from the ...
85 views

### Change "Wolfram Mathematica" directory

I use Windows and every time I open Mathematica it creates a "Wolfram Mathematica" directory under my documents, which I don't want. My first choice would be to prevent Mathematica from even ...
43 views

### Error complex function ERFI(X): looking for alternative function representations?

I have some analytical results from a physics problem, where the Mathematica gives the results in terms of complex error function. I would like to explore another function representation using ...
33 views

### coefficient of a Series of a Primes numbers [closed]

I try to calculate the coefficient of the following function of Primes for q=1,2,3... $$\frac{1}{-2 \left(p_q\right){}^s+\left(2 p_q\right){}^s+1}$$ I need to calculate de coeffient a(k s) for ...
42 views

### How to define a function without giving explicit formula

I want to have a function and I need to do some complex calculations to obtain an equation and then I want to assign the values to the function and then solve this equation to obtain the unknown ...
43 views

### How to get the Inverse Fast Fourier Transform (ifft) of a dataset? [closed]

I'm looking at the inverse fast Fourier transform as calculated by Matlab. In the question "What's the correct way to shift zero frequency to the center of a Fourier Transform?" the way to ...
33 views

### ListPlot vs. ListLinePlot How Do You Remove Discontinuous Artefacts from Introduced by Mod?

I have some data that inherently describes a phase and would like to plot it in between [0, 2*pi). When I use ListPlot with the ...
329 views

### How to transfer a list as a Python function argument

This issue was already discussed here, but the answer is unclear yet. I use very simple Python function for converting a string list to upper case ...
25 views

### axis label format [duplicate]

I am plotting the following function ...
49 views

### How to evaluate simplify an expression containing derivatives

I have an expression that is a derivative of order 2. I want to assign value to derivatives of orders lower than 2(e.g. the expression itself) which should cause the derivatives of higher order become ...
53 views

### How put a legend in an animation?

I wrote the following code for create an animation with legend: however I was not able to put the LineLegend command into the command Animate and so it seems that this is the reason for which I can't ...
50 views

### This statement isn't giving me a plot [closed]

I'm new to Mathematica. I want to plot a graph of $x^3 - 7x^2 + 28$ with ranges of x and y coordinates given by $[-10, 10]$. When I only specify the range of x-coordinates the result is obtained: But ...
83 views

### How do you plot a Circles using parametric plot? [closed]

I'm doing a project where I have to draw a smiley face using the parametric plot function. I have tried multiple ways and can't get draw a circle.
128 views

### Why the two outputs are different?

My first code is {a, b, b, a, b, a, b, a, a, b} /. {___, x : Longest[PatternSequence[a, b] ..], ___} :> {x} and its output is {a,b,a,b}. The second code is ...
102 views

### Solve System of congruences

How can I solve a system of linear congruences as such? $$3x+2y+28z = 9 (mod 29)$$ $$5x+27y+z = 9 (mod 29)$$ $$2x+y+z = 6 (mod 29)$$ I tried it this way as a system of equations, but no luck: ...
138 views

### Plotting the solutions of the equation $e^{-z}=z$ in the complex plane

I would like to plot in the complex plane the solutions of the equation $$e^{-z}=z.$$ I tried this: I took $z=a+ib$ and took the real and imaginary part of the equation: ...
54 views

### Is there a function in Mathematica that saves the power of 10 of a number in scientific form?

I have a number for instance 0.0622. I want to put it in ScientificForm so I do ...
47 views

### How do I make a symbol for a second derivative?

In my script, I want the second derivative of a function to be a symbol that I can manipulate (i.e. give a value to, use in an expression, etc.). So I want to build a box for the expression:\frac{d^...
57 views

### How to use NDsolve for PDE? [closed]

I am trying to use NDsolve to solve PDE which has an exact solution and evaluate the absolute error: ...
42 views

### No real solution for 3 coupled equations, but then how "close" can one get?

I have three equations involving $x$, $y$, and $z$ that I would like to find a unique solution to, in the Reals. NSolve does not find anything: ...
35 views

### ListlinePlot 3D How to make color bar match the z value

The code is like this: ...
42 views

### How put a value in a legend

I am trying to put in a legend a value calculated previously but as you can see by your self the output is so stranger. ...
59 views

### Bug with animation rate

I tried to introduce an decay to the rotation of an object in mathematica by tying the animation rate to the degree of rotation as in the picture below and it goes quite smoothly until it reaches a ...
23 views

### How could I define a different tolerance for each constraint?

I'm minimizing a single variable subject to several different constraints of several variables (all of which are part of the set of numbers to be found). Some of they obey a hierarchy of the form <...
116 views

### How do I get rid of the message: "Inverse functions are being used by Solve, ...; use Reduce for complete solution information." [closed]

OK. I get it. I understand the difference. How do I permanently suppress this message?
34 views

### Solve returns either empty set or is not a valid variable [closed]

I am new to Mathematica and trying Hands-on Start to Wolfram Mathematica. The examples are directly from the book. Solve does not seem to work correctly. I also used Clear[x] before each effort even ...
39 views

### How can I import datasets from TensorFlow datasets into mathematica?

TensorFlow datasets are available at https://www.tensorflow.org/datasets. I wonder if there's a way to directly import any of those datasets directly into Mathematica 12. I tried ...
74 views

### Root mean square error of bearings

I have two sets of bearing angle data, one is forecast and the other one is actual, i.e. ...
62 views

### data fitting with fitting parameter depends on x axis data

I am stucking in fitting a dataset. I have an experimental dataset which I want to model to extract some parameters, But unable to do it. Here is my dataset: ...
113 views

### Color a 3D line plot of list of lists

Assume a list of lists of length n of the kind: t = {{x1, y1, z1, p1},{x2, y2, z2, p2},...,{xn, yn, zn, pn}}. I'd like to make a ...
39 views

### Im having trouble with triple integrals [closed]

I am using the code Integrate[Integrate[Integrate[zr,{z,0,Sqrt[81-r^2]}],{r,0,Sqrt[40.5]}],{Theta,0,2Pi}] to find the volume of a solid. However, when I integrate, ...
28 views

### Combine log with unitful quantities inside [closed]

I'm having trouble with numerically evaluating some functions. The problem essentially comes down to ...
55 views

### How to re write the solution to this pde [closed]

I have this equation solved: ...
20 views

### KeyEventTranslations.tr doesn't takes effect

I'm using Mathematica 12.3 on MacOS 10.15, and trying to add new shortcuts to the KeyEventTranslations.tr. I have tried the following two locations: ...
54 views

### NSolve syntax for region

I am trying to solve these simultaneous system of equations only in a specified rectangle going from -100<x<100 and -100<y<100. But I think I am making a syntax error and hence I m not ...
32 views

### Can't evaluate an expression [closed]

Still kind of a beginner here. I've tried N, DecimalForm, and Evaluate and for some reason it just performs those operations on individual numbers in the expression instead of evaluating the whole ...
178 views

### Delete duplicate from list of lists with unequal lengths

I have a list of lists with different lengths, it is of the form { {{1,2},{3,4}}, {{5,6},{7,8},{25,-1},{-14,-3}}, {{1,2}}, {{5,6},{7,8},{22,-1},{-11,-3}}, } It ...
62 views

### How to find out if an association is one-to-one (injective)?

How could I figure out if an association's keys and values can be swapped? This is prevented if one of the keys points to multiple values. I am curious based on another question I asked. This involves ...
56 views

### What is the difference between Unset, Clear, and Remove in Mathematica? [closed]

What is the difference between Unset (symbol=.), Clear[symbol], and Remove[symbol]? How do they affect the state of the symbol they are performed on whether it is a variable or a function? Which is ...
32 views

### Installation Question [closed]

I am running Mathematica 12.3.1 on a Dell Desktop computer (Windows 10 Pro). I'm thinking of upgrading to a new Dell Desktop running Windows 11 Pro. Dell has a service, 'Dell Migrate' which is ...
54 views

### How to find all functions that accept level specifications as an argument?

How can I find a list of every function that takes a level specification as an argument?
64 views

### How does Leafcount work? [closed]

I am curious about how LeafCount works because when I count the number of leaves in my solution to a Wolfram Challenge, I get a much smaller result than those listed on the leaderboard for Multiples ...