The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
0answers
56 views

How I can plot Vector3DPlot?

I want to reproduce the vector 3D plots as shown in the figure. It's in spherical polar coordinates (i.e. vector 3D plot on plane). The angle [Theta] is spherical coordinate is determined by the ...
2
votes
1answer
63 views

Laplace equation DirichletCondition ignored

My goal is to find out force between two parallel identical disks with Voltage difference. To solve this, I tried to use laplace equation. And below is my code. where R is radius of disks, d is ...
0
votes
0answers
22 views

Dealing with small values inside numerically computed determinants

I'm working with a system that is sensitive to small changes in the parameters and it appears I found an oddity when calculating these determinants. Consider the following notebook that symbolically ...
3
votes
2answers
54 views

Checking NDEigensystem Results

I'm looking to verify the output of a call to NDEigensystem. I'm doing this by plotting the operator acting on the Interpolating Function outputs versus the ...
2
votes
2answers
158 views

Simplify appears to give different results

I have an issue with Simplify (and FullSimplify) giving a different numerical expression to the pre-Simplified expression. The function is an alternating sum of trigonometric quantities: ...
1
vote
0answers
37 views

What is used for the % symbol in mathematica? [duplicate]

Im new in mathematica i want to know logic about this program. I got this code: {{vo, vn, Ii}} = {vo, vn, Ii} /. %; i know that the syntax /. is for replacement but i dont know whats going on with ...
0
votes
1answer
25 views

Equation solving for approximate solutions when function has numerical integration in it

I have an equation that is of one variable lat and has a numerical integration in it t from 0 to 1. Let's say it's given by <...
1
vote
1answer
70 views

Find values of $k$, $l$, and $m$ such that the following equation is satisfied

I am trying to find the (numerical) subset of $(k,l,m)\in[-\pi,\pi)\times[-\pi,\pi)\times[-\pi,\pi)$ where the next expression is valid $$ \tan \Bigl( \frac{k+l+m}{2} \Bigr) = \frac{ \sin k+ \...
0
votes
1answer
47 views

How to use a Table to generate numerical data from tridimensional scalar or vector function? [closed]

I am interested to generate numerical values for a scalar and vector function (both are complex functions). My question and concern are how is possible to evaluate if the functions have three ...
0
votes
0answers
40 views

How to time shift x-axis in mathematica simulation?

I have a simulation from a system of equations that runs from 0 to 50 Normal = NDSolve[{A /. Parameter, A[0] == .1}, {A[t]}, {t, 0, 50}]; That produces: Now ...
1
vote
1answer
77 views

Solidification Problems in MMA

can we define such intial value and BCs for a solidification problem in MMA using Finite Element: 1.) initial value:=1 for a plate 2.) in this plate we have to define dirichlet bcs for a whole ...
0
votes
1answer
52 views

Evaluation functions with lower and upper limit ODE?

How do I find the numerical value of y at 0 and also at 1. Here is my code. I appreciate any help. ...
3
votes
2answers
141 views

Solving Equations with HeavisideTheta Functions

I need to solve an equation that involves the HeavisideTheta[] function, but regardless of the method I use Mathematica returns an error message. For example, <...
1
vote
2answers
131 views

Solving BPV of second order nonlinear ODE through NDSolve

I'm trying to solve a 2nd order related ODE system in two region using Piecewise. BC: 1) y'[0]=0 and at y'[1.6]=0 while at 1 <...
1
vote
1answer
70 views

Finding the value which gives a list total of zero

Is there a way to check if x will converge for Total[g] approaching zero in this code example? For n=15000000, 1.87 < x < 1.88, but takes awhile to run. Thanks. cheers, Jamie ...
1
vote
1answer
35 views

Numerically approximating the series of the solution to a PDE

Suppose I had a PDE such as the heat equation in two variables, and I want to solve it with mathematica, and ask it to return me a series expansion of the solution. For example, ...
0
votes
1answer
58 views

How to find all numerical roots in exponential equation? [closed]

I have this function: d = 7.61; beta = 0.0193; lnot = 74.1; morse[x_] := d*(1 - Exp[-beta*(x - lnot)])^2; and I can see there are 2 roots because when I do <...
1
vote
0answers
40 views

Exponential distribution and numerical errors?

I am working on the measure of a Curie Weiss model over a lattice $$ \mu[m] = \frac{e^{\beta N (hm + m^2)}}{\sum_z e^{\beta N (hz + z^2)}}\binom{N}{\frac{(1-m)N}{2}}2^{-N} $$ where $m\in\{-1,-1+2/N,\...
2
votes
1answer
53 views

How do I make InverseBetaRegularized function behave the same in Mathematica 11.3 compared to 11.2?

In Mathematica 11.3: InverseBetaRegularized[0.001, 4501, 500] Never finishes calculating. ...
3
votes
2answers
167 views

NIntegrate on a solution of a matrix ODE

I've seen similar questions on this site but somehow the solutions there didn't manage to solve my specific problem. I have a function mat1 that takes a square $n \times n$ matrix G, and some final ...
1
vote
1answer
59 views

Getting values of EllipticK with arguments that are very near 1

I need to evaluate EllipticK[m] very close to 1. However, when I get too close to 1 the function defaults to the exact solution for 1 , which is ...
0
votes
0answers
86 views

Clebsch Gordan coefficients

I'm trying to compute various sums which contain some CG coefficients, where the sum runs over the indexes m1,m2,m corresponding to each of the three angular momenta j1,j2,j. The thing is that when I ...
0
votes
1answer
39 views

Reverse the reccurence mirrorwise

Let be a recurrence for polynomials $R_{m,j}$ ...
1
vote
1answer
72 views

NDSolve::dsvar error when trying to solve system of differentail equations

I'm currently trying to solve a set of differential equations using NDSolve but I'm getting an error... The following was construced with the help of this answer ...
1
vote
1answer
105 views

Conditional evaluation: black hole cross section

I'm trying to calculate the collision cross section of black holes, more precisely, I want the critical impact parameter $b_{\text{crit}}$ for a given initial velocity $v$ such that, at this speed, ...
1
vote
2answers
180 views

Can one define 0 Log[0] = 0?

With reference to this post, can one define 0 Log[0] = 0 in Mathemtica?
3
votes
1answer
97 views

Comparing exact expressions vs real numbers

Often I need to generate some data using some symmetry operations and I usually keep them as exact expressions (for example, consider the points on a triangular grid ...
2
votes
1answer
40 views

Computing the Multivariate Normal density gives sometimes different values from in-built function

I'm trying to define the density of the Multivariate Normal distribution, since it will be faster to compute for greater dimensions (vectors of size 50 or more), specially when I have to do those ...
2
votes
1answer
62 views

Strange plot artifacts when plotting the underdamped oscialltor solution

I'm plotting something trivial; the solution to an underdamped harmonic oscilator: $$x(t) = A_{0} \cos(\omega t) e^{-t/\tau}$$ In MM speak I say: ...
2
votes
3answers
294 views

N[…, 5] does not returns what I expected

I have this ...
1
vote
2answers
91 views

Having problems with using TableForm to format a table

I want to make a table of various values of the logistic curve given by l[x_] := 1/(1 + E^((-k)*(x - \[Alpha]))). In basic form, this is dead easy. However, I want ...
0
votes
1answer
36 views

Fitting a numerical function with another function that depends on parameters

I'd like to fit a branch of the Lambert function : -ProductLog[-1, x] in the interval $[-0.35,0]$ with a function of the form $-a\log(-bx)+c+d x$ or $-a\log(-x)+...
3
votes
1answer
170 views
0
votes
1answer
63 views

Increasing MaxExtraPrecision arbitrarily changes numerical result

I am trying to confirm that a function $f$ satisfies a particular differential equation of the type $D f=0$, for some differential operator $D$. I set $Df$ as Diffeq...
0
votes
1answer
67 views

How to extract the minimal value from NMinimize? [closed]

According to the manual, if I calculate NMinimize[x^4 - 3 x^2 - x, x] that returns {-3.51391, {x -> 1.30084}}, I can extract the minimal value -3.51391 using <...
0
votes
0answers
46 views

High numerical precision failing [duplicate]

N[(1 - 2*6.674*6*10^13/(6371000*299792458^2))^(0.5), 20] 1. What I expect: ...
1
vote
2answers
59 views

Numerics & List Manipulation:ListCorrelate: yield $\{-f1 + f2, \dots, -f2 + f4, \dots\}$ from $\{f1, f2, f3, f4, f5\}$

The command ListCorrelate[{-1, 1}, {f1, f2, f3, f4, f5}] yields {-f1 + f2, -f2 + f3, -f3 + f4, -f4 + f5} is there any simple way to get {-f1 + f2, -f1 + ...
2
votes
2answers
203 views

Help for Solving Two Equations For Two Unknows (from a Paper)

I am trying to reproduce numerically the results found in this paper: https://ieeexplore.ieee.org/document/1707778 You don't necessarily need to read it. Basically I boils down to solving a two ...
0
votes
4answers
140 views

How to solve equation in integer numbers

I would like to solve an equation like this $\frac{\log(2)}{\log(3)}=\frac{n-0.5}{k-0.5}$ where $n$, $k$ are positive integers and $\log$ is natural logarithm. Of course, I can do only numerical ...
1
vote
2answers
109 views

Sampling data from numerical values of density distribution of nucleons

How could i sample my data which follows distribution if i have only numerical values of density distribution as an example data attached as in picture I tried but do not know how to do it. The data:...
0
votes
3answers
32 views

Low precision from function returning matrix

Got a function depending on single parameter "t" defined below which returns a 2 by 2 matrix ...
1
vote
1answer
107 views

Second-order nonlinear boundary value problem

I am trying to follow this work, in which Eq. (11), the 2nd-order, nonlinear differential equation depends on a pair of parameters $ (\kappa, h) $. But now I only care about the case with a vanishing $...
3
votes
1answer
117 views

Solve a system of 4-th order polynomial equations (numerically)

I have a function defined on $ S^6 \times S^6 $ (two spheres embedded in $ \mathbb{R}^7 $ individually). Let us call this vector $ \vec{f}(\vec{x},\vec{y}) $, where $ \vec{x} $ and $ \vec{y} $ are ...
3
votes
1answer
67 views

Numerical precision problem

I have this simple code: ep = 1 - 80000000000 (-(199999/200000) + 1/E^(1/200000)) ep // N -8.27404*10^-8 ...
1
vote
0answers
39 views

Finding zero linear combinations of polynomials (numerically)

I have two functions of real variables defined on two compact spaces ...
0
votes
1answer
34 views

Best practice when encountering “Indeterminate” when applying a value equal to infinity

I have the following equation, which equals 1 for positive values of $n$, but at $n = \inf$ the equation becomes indeterminate. 4 n (1 - 1/2) 1/2 (1/Sqrt[n])^2 ...
3
votes
1answer
105 views

Why does NSolve give different results in different version of Mathematica?

I am working on a problem with a colleague who uses Mathematica v.10.2 while I have v.11.0 Student Edition. We are solving the exact same equations but get two slightly different results. Why would ...
2
votes
1answer
59 views

Numerical solution of a system of two exponential equations

I need to solve this two equations for x and y: ...
1
vote
2answers
71 views

Solving a system of equations with numerical approximation [closed]

Let a, b, c be vectors obtained with the function N and x, y be scalars. I have the equation:...
-1
votes
1answer
55 views

Finding all roots of a function within an interval [duplicate]

I have the following code: ...