Skip to main content

Questions tagged [numerical-value]

Question relating numerical representations, operations and methods, including approximate results instead of exact symbolic results.

Filter by
Sorted by
Tagged with
2 votes
1 answer
77 views

Solving a Coupled System of Partial Differential Equations with Initial and Boundary Conditions

I am working to solve the provided system containing one PDE coupled with an ODE. $G_t - \frac{\dot H}{H}\eta G_\eta -\frac{1}{H}FG_\eta +\frac{1}{H}F_\eta G + \frac{2FG}{\eta H}=\frac{1}{H^2R}[G_{\...
Muhammad Zeeshan khan's user avatar
2 votes
1 answer
109 views

How can I know for sure if I have a singularity or not when numerically plotting solutions to ODE's?

Here's my code for what I'm working on: ...
DingleGlop's user avatar
4 votes
1 answer
291 views

How to port Matlab/Python's multivariate FoxH implementation in Mathematica?

Ref code MATLAB Python My implementation Are there some mistakes in my Mathematica code? Any help would be greatly appreciated. Attempt Version 1 (❌) ...
138 Aspen's user avatar
  • 1,902
2 votes
1 answer
84 views

Internal`MRealToString Gives Scientific Output From Large Inputs. How To Stop This?

The undocumented Internal`MRealToString works just fine for reals up to 999999. For anything over it outputs scientific notation. I don't need scientific, I need simple decimal. ...
Anton's user avatar
  • 417
1 vote
0 answers
43 views

TimeConstrained and optimization

I am trying to understand why wrapping TimeConstrained[] around optimization, e.g., MinValue[] can sometimes fail. To reproduce ...
Aharon Naiman's user avatar
1 vote
0 answers
60 views

Help with a partial differential equation - inaccurate result

I'm trying to solve the following partial differential equation using NDSolve ...
derdin1's user avatar
  • 63
0 votes
1 answer
74 views

How can I use the values of one plot in another one?

I have a two functions that I have to plot versus Q: the first is Ri which is a solution for ...
Houhou Trad's user avatar
2 votes
2 answers
222 views

Summation not returning a timely result

Why is Mathematica v12 spinning on this series: FullSimplify[Sum[16^x/((16^x) + 4), {x, 1/2025, 2024/2025, 1/2025}]] The answer works out to 1012. Is there another ...
Steve237's user avatar
  • 637
1 vote
2 answers
132 views

Solution of an implicit integral equation

The present question is pretty similar to this one. Here I want to find the solution of the following implicit integral equation: $$ P_H(u)=\int_{-\infty}^\infty dJ \int_{-\infty}^\infty du_1 \int_{-\...
Ruth Murphy's user avatar
2 votes
2 answers
217 views

Numerical derivative of numerical function

I am trying to calculate the derivative of a numerically defined Hamiltonian. This is a minimal working example (on a simple example): ...
blahblah's user avatar
  • 133
1 vote
1 answer
57 views

Errors in `NIntegrate` - or in coding?

As far as I know, if a set of functions f,g,h,... are all Riemann integrable then the definite integral of the sum f+g+h over ...
Richard Burke-Ward's user avatar
0 votes
0 answers
64 views

A problem with obtaining the beam frequencies and mode shapes

I am supposed to find the mode shapes of two assembled beams. To this end, we must reduce the PDE equation of motion of beam to an ODE including the oscillation frequency. The solution of ODE has some ...
Sajad Mirhashemi's user avatar
0 votes
0 answers
67 views

NDSolve::litarg error and overdetermined system error in NDSolve

Before the long description about my problem, my question is How can I avoid NDSolve::litarg error and overdetermined system error in a NDSolve for simultaneous differential equation. Nowadays I ...
chickenstick's user avatar
1 vote
0 answers
74 views

Problems with implementation of subresultant pseudo-remainder sequence in Sturm's theorem

I've implemented the subresultant pseudo-remainder sequences ( https://en.wikipedia.org/wiki/Polynomial_greatest_common_divisor#Pseudo-remainder_sequences ) as described in Wikipedia. However, when ...
Moonwalker's user avatar
0 votes
1 answer
55 views

NSum with variable sitting inside

I want to evaluate the following and many other similar expressions numerically from k=2 to k=Infinity with a variable ...
QFTheorist's user avatar
1 vote
1 answer
103 views

Solving a 3+1D Wave Equation

I am having some problems with finding the solution to the magnetic field, B[x,y,z,t]. Is there anything I can change to my code to obtain a solution of B[x,y,z,t] with the initial conditions and ...
Tommy Wong's user avatar
0 votes
0 answers
43 views

How to find optimal solution

I want to ask something. Right now, I want to try to find the optimal solution from a function in a paper. here is the function : And here is the numerical example : There is solution procedure that ...
Grizzly54's user avatar
3 votes
2 answers
41 views

Strange behavior of MinimalBy [duplicate]

data = {{1, 2}, {2, 2}, {3, 3}}; MinimalBy[data, Norm@# &] Output: {{2, 2}} When applying numerically : ...
lesobrod's user avatar
  • 1,894
2 votes
0 answers
56 views

Interpreter fails to obey significant figure specifications

Consider the following example, where we specify the precision of the numbers to perform a significant figures calculation: ...
Joshua Schrier's user avatar
2 votes
1 answer
108 views

Finding roots for an expression with non-elementary function

Is there an approach to solving this for $a$ in either closed-form or numerically? ...
Moo's user avatar
  • 3,410
0 votes
1 answer
68 views

How to use multiple output from Nsolve? [closed]

I have 3 simultaneous equations and 3 unknowns. The values are coming to be right. But how do I assign these 3 values in the respective variables? ...
Sheersha Karmakar's user avatar
0 votes
2 answers
150 views

How to numerically find complex non-real roots of a function?

Using Mathematica, how can we numerically find only complexes, but not real roots, of a function? For example, if we have f:C->C, and we have roots like, R1,R2,...,Rn (real roots, without imaginary ...
GarouDan's user avatar
  • 1,536
1 vote
0 answers
62 views

How to Parse Binary .STL File Created on Ancient 32-bit Architecture

Import[fileName,"STL"] returns $Failed The file format is so simple that one can calculate the number of triangles in the file by counting the number of BinaryReads to reach EndOfFile. https:...
Stewart Dickson's user avatar
1 vote
1 answer
116 views

Can't solve equation numerically (Solution in terms of Root) [duplicate]

I am trying to solve the following equation numerically. ...
dorrel's user avatar
  • 49
2 votes
1 answer
132 views

Solving a ODE (Peeble's Equation) with initial condition a the maximum input range

I have a differential equation which is, $$ \frac{d X_e}{dz} = \frac{C_r(z)}{H(z)}\times \frac{1}{(1+z)}\Big[\frac{38\eta T^3}{25\pi^2}\alpha (T)X_e^2 - b(T)(1 - X_e) \Big] $$ Where $$ \alpha(T) = \...
Kazi Abu Rousan's user avatar
1 vote
1 answer
64 views

Is a four-variable function less than one?

I have the following function of four variables f=Sqrt[(1 + w - x + 4 y z) - Sqrt[4 (-w + x) + (1 + w - x + 4 y z)^2]]/Sqrt[2] I want to show that $f(w,x,y,z)<1$...
Julio Abraham Mendoza Fierro's user avatar
3 votes
0 answers
64 views

Derivative[0, 1, 1][QPolyGamma] cannot be calculated numerically?

During a more complicated calculation, I got an expression ...
Vaclav Kotesovec's user avatar
0 votes
2 answers
110 views

Why can't NSolve find values that FindInstance can?

I am trying to solve for \[Epsilon], given three input paramters n, x and ...
Dotman's user avatar
  • 496
5 votes
1 answer
187 views

Why is Around omitted when the uncertainty is zero?

I have a list of values with errors and I use Around[x, dx]. Some of those values have an error of zero though. Mathematica removes the ...
Failboy's user avatar
  • 53
0 votes
0 answers
68 views

NSolve can't solve a system of 2 equations with 2 unknowns

I've been trying to solve a system of 2 equations with 2 unknowns using NSolve. But It's been too slow. I waited for more then an hour without any results. The code is: ...
Alen's user avatar
  • 101
0 votes
0 answers
40 views

How to treat small numbers in order to gain efficiency and precision in neural network algorithm?

Unfortunately I won't be able to provide a MWE, as it would be too big and complex, and this question will be based on pure semantics, basically (and I understand if this is impossible to answer in ...
GaloisFan's user avatar
  • 405
0 votes
1 answer
128 views

NMinimize can not find points that satisfy constraints

NMinimize cant find solutions for a function which clearly has one. Setting a working precision resulted in some output, however with error messages about tolerance and precision. Heres my code. The ...
Dotman's user avatar
  • 496
1 vote
0 answers
66 views

Numerical Error using compile

I'm trying to compile a function and I'm running into the following error CompiledFunction::cfne : Numerical error encountered; proceeding with uncompiled evaluation. I think I have succeeded in ...
Dotman's user avatar
  • 496
0 votes
1 answer
121 views

Performance improvements using Table and Compile

I'm converting a code from MatLab to Mathematica. It takes MatLab less than a second to compute it while its more than ten minutes in Mathematica. I was hoping to improve the performance. Here's a ...
Dotman's user avatar
  • 496
-2 votes
1 answer
69 views

How to make faster of a code containing more iteration point? [closed]

I am trying to evaluate a code of the Power Series Solution method to get the results. Also, the time of evaluation depends on the parameters I am using. When the iteration point is 50, 60, or 80, it ...
supragyan priyadarshinee's user avatar
1 vote
2 answers
169 views

How to make faster of a code containing more iteration points?

I am trying to evaluate a code of the Power Series Solution method to get the results. Also, the time of evaluation depends on the parameters I am using. When the iteration point is 50, 60, or 80, it ...
supragyan priyadarshinee's user avatar
0 votes
1 answer
120 views

How to minimize numerical error in the code while solving the system of ODEs

I just want to ask in the graph of the code mentioned in the link, while plotting u from {-0.0001,y,0.0001}, the jump is coming because of the numerical error u1-u2. Can anyone please tell me, how to ...
Komal Goyal's user avatar
1 vote
2 answers
168 views

Finding closed form representations of floating point numbers?

Is there a trick to automatically recognize that ${-0.5771,1.2280}$ are approximately equal to {-EulerGamma, Log[2 + Sqrt[2]]}? These were obtained by using ...
Yaroslav Bulatov's user avatar
0 votes
1 answer
54 views

Proceeding integral or summation calculation with no explicitly designated quantities, but instead with an abstract 'n' quantities

Could someone kindly tell me how to calculate formulas such as integral or summation with no explicitly designated algebra quantities as derivatives or summands, but the abstract ' n' quantities ...
liqi3837671's user avatar
0 votes
0 answers
43 views

Nested NIntegrate with Matrix Exponential

I wish to perform a numerical integration which involves a matrix exponential. Here's the following code ...
kowalski's user avatar
  • 375
1 vote
1 answer
82 views

a problem in numerical integration in Mathematica

I am trying to numerically compute an integral of the following type in Mathematica. I can show that this integral can be computed analytically. Still, I want to make sure Mathematica can also give me ...
HadamardN2's user avatar
1 vote
0 answers
54 views

Increase computation speed for nested integral equations

I want to numerically solve these two nested integral equations $$q(J_0,T)=\int_{-\infty}^{\infty} \frac{1}{\sqrt{2\pi}}e^{-\frac{z^2}{2}}\,\mbox{tanh}^2\left(\frac{z\sqrt{q(J_0,T)}+J_0 m(J_0,T)}{T}\...
Ruth Murphy's user avatar
0 votes
0 answers
47 views

Identifying the parameter that flips the solution

I have solved a system of ODEs numerically. As the plot shows, the solution SolJx is positive for the parameters I have chosen. However, if you decrease (more ...
NC520's user avatar
  • 479
0 votes
0 answers
91 views

Error in numerical integration using Wolfram Mathematica

I hope you are doing well. I am having serious problems while calculating a numerical integral in Wolfram Mathematica, as the following error messages appear: 1- "Numerical integration converging ...
Rubens Filho's user avatar
1 vote
0 answers
79 views

Numerical solution system of ODEs

I want to solve the following system of ODEs with four boundary conditions: ...
NC520's user avatar
  • 479
1 vote
1 answer
209 views

How to numerically solve differential equations with singularities?

I wish to solve a differential equation numerically. As an example, I tried solving Hypergeometric differential equation ...
Erosannin's user avatar
  • 307
1 vote
1 answer
60 views

Value given by NIntegrate is double of Integrate function

I am performing a calculation where the result of NIntegrate and Integrate is different. They differ by factor of 2. Can someone tell what is the reason and how to make the NIntegrate value right?, <...
Kazi Abu Rousan's user avatar
2 votes
2 answers
239 views

Solving complex equation numerically

I'm trying to solve the following equation for $z$ for a set of given complex values of $a$ and for fixed $b$ (without providing any initial guess value(s)): $2^{iz}~\Gamma\left(\dfrac{iz+b}{2}+1\...
SCh's user avatar
  • 175
3 votes
2 answers
387 views

How can I speed up calculation of the integral?

Is it possible to speed up the calculation of the Kx integral? ...
Mam Mam's user avatar
  • 1,883
3 votes
1 answer
87 views

Why two the same integrals give different values?

Why two the same integrals give different values? ...
Mam Mam's user avatar
  • 1,883

1
2 3 4 5
8