# Tag Info

Accepted

### Is Internal`StringToDouble broken in 12.3?

StringToDouble was renamed StringToMReal as part of code cleanup and the addition of several friends: ...
• 14.2k

### Numerical voodoo in mathematica?

To get exact output, use exact input (and please input your question using plain text Mathematica code that one can easily copy). ...
• 148k
Accepted

### Solve Laplace equation in Cylindrical - Polar Coordinates

I think it is better to use Cartesian coordinates because one does not have to deal with the periodicity in p. To have control on the meshing of the the region, we tell Mathematica explicitly to ...

### Solve Laplace equation in Cylindrical - Polar Coordinates

Here is a analysis of all the problems related to Mathematica in your question. Briefly summarized, These are 3 problems : the lack of build-in tools to visualize the potential and vector field in ...
• 18.7k
Accepted

### Why does Abs return negative values?

It is a bug that will be fixed in the nearest release of Mathematica. It affects Abs/Sign of positive Root objects with third argument 1, for which the real root isolation algorithm produces an ...
• 3,520
Accepted

### How to obtain numerical solutions of a two-variable equation?

There are infinitely many (continuum) solutions and basically one cannot list them all e.g. because of the Cantor theorem. This is the reason why numerical approach is unsatisfactory. However we can ...
• 57.6k

### Numerical voodoo in mathematica?

The problems at hand comes from using inadequate numerical approximation. The equation behind is quite simple and it can be solved exactly, we put 10/3 instead of <...
• 57.6k
Accepted

### Is it possible to ask Mathematica to give the maximum value of a function over a specific domain?

NMaximize[{f[n], 1 <= n <= 10^6, n ∈ Integers}, n] (* Out: {63.041, {n -> 2}} *) You can then get the corresponding symbolic function value using your ...
• 67.5k
Accepted

### Problem with NDSolveValue

I will present an anisotropic meshing solution that will allow you to resolve a sharp normalized peak at the center of your cube. Many links applying this technique are in my answer to the question ...
• 16.4k
Accepted

...
• 148k
Accepted

### Some Strange results from MMA and Matlab

The line Table[N[PHI30EQ[u], 30], {u, 0, 0.1, 0.001}] doesn't do what you think it does. You're asking for 30 digits of precision, but you supply ...
• 24.1k

### NDSolve giving a wrong solution

The general problem In using NDSolve to solve first-order IVPs, there are basically two ways to set up the ODE: ...
• 240k
Accepted

### Error and uncertainty propagation: Is using Precision/Accuracy a sound strategy?

Your problem is similar to a wave spectra problem and a regression problem, and I have both types of problems going on at work right now which is why I've thought about your problem a bit. Here is an ...
• 1,955

### N[..., 5] does not returns what I expected

The documentation for N says that N[expr, n] attempts to give a result with n-digit precision. In the Wolfram Language, or any ...
• 10.1k
Accepted

### How to plot output data of Do-command?

This is a good candidate for NestList ...
• 82.2k
Accepted

### Comparing exact expressions vs real numbers

PossibleZeroQ is rather fast and does precisely what you're looking for: RepeatedTiming[PossibleZeroQ[a - b]] {3.2*10^-6, ...
• 49.1k

### 1-D PDE with nonlinear ODE as boundary condition

NDSolve currently can't handle coupled PDE and ODE, so let's discretize the system all by ourselves, but before that, I'd like to point out the system actually has ...
• 67.6k
Accepted

### Why mathematica does not solve the equation $x\left \lfloor x \right \rfloor=10$ for $x$?

You can specify you want real solutions Solve[x*Floor[x] == 10, x, Reals]
• 356
Accepted

### Root finding: Is there no bisection method root finder?

There's a bisection method right here. Use bisect = ResourceFunction["BisectionMethodFindRoot"] ...
• 25.6k
Accepted

### Obtaining numerical value from Recurrence Table

a[1] = 2; a[n_] := a[n] = 4 Sum[a[i], {i, n - 1}] Table[a[n], {n, 1, 10}] {2, 8, 40, 200, 1000, 5000, 25000, 125000, 625000, 3125000}
• 8,806
Accepted

### NDSolve giving a wrong solution

The reason for that behavior seems to be a big logical bug in NDSolve. During calculation it seems to treat expressions like: ...
• 302
Accepted

### How to define a function to be numeric when the input is purely symbolic

Instead of unprotecting NumericQ, one can define an upvalue for h: ...
• 11.9k
Accepted

### Finding closed form representations of floating point numbers?

You can use the WolframAlpha function to ask for possible closed forms of a number: ...
• 24.1k

### Numerical derivative of numerical function

Maybe you can use the function ND in the package "NumericalCalculus". Just modify your code of function Dumdv1nN: <...
• 1,813

### Why does this test yield True

Because there are no elements in your matrix. So there is no element which is not numeric and real. MatrixQ[{{}, {}}, False &] returns ...
• 510

### Numerical voodoo in mathematica?

Read any basic article or chapter about rounding error. When substituting back, the computation that occurs is subtraction $10^{-15}$ (with 16 significant figures, hence 31 correct digits in the ...
• 20.4k
Accepted

### N[Product] and NProduct give different results

A bit of re-writing can get around this: ...
• 11.2k
Accepted

### Visualizing the Schrödinger equation for dipole based interaction Hamiltonian

I think, the answer to your question is a straight forward one. You wanted to plot the solutions of your system, which can be done like this, ...
• 12k