Skip to main content

Questions tagged [numerics]

Questions on the numerical functions of Mathematica, implementing numerical methods and numerical computing with Mathematica.

0 votes
0 answers
42 views

Using a Solution of NSolve in Further Calculations [closed]

I want to take the solution from an NSolve and perform operations on the result, a bit like the following code. Please can someone advise on how I 'extract' the NSolve solution as a variable. Thanks <...
Gwaine's user avatar
  • 105
3 votes
3 answers
216 views

What could I do when NSolve fails to give solution?

My code was: f[x_]:=(Exp[x]-2)/x; NSolve[{f[a]==f[b],f'[a]==f'[b],a>b},{a,b},Reals] The output was an empty list {}. However,...
youthdoo's user avatar
  • 315
5 votes
2 answers
778 views

Strange results about the sine function of a big integer

I want to calculate the sine of a big integer, e.g., Sin[10^50], but found that N[Sin[10^50]], N[Sin[10^50],10], and N[Sin[10^50],20] give different results: ...
Quantum Physics's user avatar
0 votes
0 answers
95 views

Issue with higher order derivatives of list data

I have tried to plot some experimental data (https://drive.google.com/file/d/1ouJWkQ1CQA6Z3fFlMqDb1JPF4wg16Efr/view?usp=drive_link). However, when I calculate the second derivative, sharp peaks appear ...
Gopal Verma's user avatar
  • 1,095
5 votes
2 answers
356 views

How to make sure whether the vertical line in the given plot are artifacts or real solutions?

I have the Root[...] function in terms of a real positive $x$ variable, for which the code is given below. I plotted this function for $0<x<300$, and I get ...
mathFra's user avatar
  • 63
2 votes
1 answer
246 views

Difficulty Solving a PDE System with Initial and Boundary Conditions in Mathematica

I am trying to solve the following system of nonlinear PDEs in Mathematica, but I'm encountering difficulties, particularly with defining the initial conditions. Here's the system I am working with: $$...
Mikoto's user avatar
  • 334
0 votes
2 answers
124 views

FindRoot error: FindRoot::sszero, FindRoot::dfmin, FindRoot::lstol

I'm trying to solve a highly non-linear system using FindRoot. I need to find r for fixed a=0.9; k=1; m=1; M=1; but at for ...
MMS's user avatar
  • 129
7 votes
2 answers
533 views

Avoiding overflow when computing tetration

Is there any method by which I can avoid overflow in the following code? ...
S. Finch's user avatar
  • 129
2 votes
2 answers
245 views

How to numerically check the binoharmonic series?

$$ \sum _{k=1}^{\infty }\frac{4^kH_{2k}^2}{k^2\binom{2k}{k}}=8G^2+\frac{103}{2}\zeta \left(4\right)-22\operatorname{Li}_4\left(\frac{1}{2}\right)+7\ln ^2\left(2\right)\zeta \left(2\right)-\frac{11}{12}...
Ahamad's user avatar
  • 300
15 votes
1 answer
296 views

Incompatible change in numerics in V14.2 in Table[], Range[]

There's a change in the outputs of Table[] and Range[] in V14.2 (compared to V14.1) on MacOS ARM when iterating through machine ...
Michael E2's user avatar
  • 252k
1 vote
2 answers
123 views

Minimization of a numerical model function

I have a simple model coded as a function mod[x], which returns a single value. Inside of the model I solve a.o. a small system of linear differential equations, with x being one of the coefficents. ...
hippo3773's user avatar
  • 1,294
0 votes
0 answers
76 views

How to eliminate or reduce the error of the integration?

As can be seen in the following code, jr is a numerical integration of x and y. Here, in ...
user106060's user avatar
0 votes
1 answer
108 views

How to simplify such that the imaginary part is removed

I'm trying to solve an equation for \Omega and non-zero S. ...
MMS's user avatar
  • 129
1 vote
1 answer
165 views

Solving a system of 4 equations gives wrong answer but no errors

I'm trying to solve a system of 4 equations for r, Ω, W, and ...
MMS's user avatar
  • 129
0 votes
0 answers
84 views

how to debug findmaximum

I have the following code which is self contained. It is doing multivariable numeric optimisation with a user supplied gradient. The first call to FindMaximum ...
Luca's user avatar
  • 426

15 30 50 per page
1
2 3 4 5
152
X