Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [numerical-value]

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

2
votes
1answer
32 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
49 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
283 views
1
vote
2answers
53 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
23 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
141 views
0
votes
1answer
53 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
39 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
39 views

High numerical precision failing [duplicate]

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

Functional fixed points (ie fixed point of mapping from function space C[0,1] to itself)

I am looking for some tips or guidance as to what machinery in mathematica can help me get at this problem numerically. I am looking for fixed points of a mapping, but the objects in question are ...
0
votes
1answer
39 views
1
vote
2answers
52 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
192 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
118 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
102 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
29 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
76 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
100 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
47 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
36 views

Finding zero linear combinations of polynomials (numerically)

I have two functions of real variables defined on two compact spaces ...
0
votes
1answer
28 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
73 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
50 views

Numerical solution of a system of two exponential equations

I need to solve this two equations for x and y: ...
1
vote
2answers
66 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
48 views
0
votes
2answers
64 views

equal expressions give different numerical result

I have two expressions, and they are really equal: ...
0
votes
0answers
22 views

Raising a negative number to a fractional power, why the result is different? [duplicate]

In the math theory, we know have $$(x)^{\frac{m}{n}=}\sqrt[n]{x^m} \ ,$$ it means $$(-1.5)^{\frac{1}{0.3}}=(-1.5)^{\frac{10}{3}}=\sqrt[3]{(-1.5)^{10}}=\sqrt[3]{1.5^{10}}\simeq 3.8634 \ .$$ But in ...
3
votes
0answers
154 views

On Ж, and the fine-structure constant

I'm trying to reproduce the results from a certain infamous paper that has been moving around the web for the last few days. The details are irrelevant. This paper claims to have a closed-form ...
0
votes
2answers
93 views

Product of large number with a very small number returns zero because Mathematica sets the very small number equal to zero [closed]

I have a product Exp[-I*Pi*x]*BesselK[-1, 2.43*Ix]. Now, Exp[-I*Pi*x] grows larger and larger as $x$ increases for imaginary ...
2
votes
0answers
47 views

What is the acceptable error in numerical calculations? [closed]

I am doing a calculation where I try to simplify a very complicated complex function. I did this step by step and I checked that the numerical values that the function gets for certain values of the ...
0
votes
1answer
66 views

Taylor Series of numerical solution of FindRoot

I have found the inverse to the following equation by using FindRoot. I want to have a Taylor approximation (say starting from ...
6
votes
4answers
117 views

Suppress trailing 0s in numerical values

For example, this is what I want In[1]:= N[Table[4^(i/4), {i, 1, 4}]] Out[1]= {1.41421, 2., 2.82843, 4.} But if I want a few more digits only from the irrational ...
1
vote
0answers
44 views

Is there a function that returns me the largest common divisor? [closed]

Is there a function that returns me the largest common divisor? I tried this: Intersection[Divisors[200], Divisors[280]] // Last
0
votes
1answer
101 views

How to test if a solution of NDSolve is positive

I want to solve a differential equation numerically and determine one of the parameters in the D.E. The goal is to determine $M$ such that the function goes asymptotically to zero or to put it in a ...
0
votes
2answers
82 views

Computing a sum with high precision

I am aware that a similar question has been asked, for example, here and here, but none of the proposed solutions solves my problem, so please wait before you mark this question as a duplicate. ...
1
vote
1answer
69 views

How do I to remove a factor of 1 [duplicate]

I evaluated Subscript[ε, 1, 2] = 0.5 Subscript[γ, 1, 2] 2 μ Subscript[ε, 1, 2] 1. μ Subscript[γ, 1, 2] How do I to remove ...
1
vote
1answer
61 views

How to make Mathematica show small and large results? [closed]

I have two equations with x=r+Log[-1+r] and v=(1-1/r)/r^3 forms. When I substitute ...
1
vote
0answers
35 views

Getting the coordinates of a specific point out of a plot [closed]

I have the following piece of code that in the first part calculates and plots a function and it uses it in the second part to perform an NDSolve. After that I am plotting two functions. What I would ...
0
votes
0answers
51 views

Fastest way to find roots and reproduce this result

I am trying to solve the following transcendental equation numerically with the given values and to reproduce the diagram attached below. $0=\frac h2\sqrt{\left(\frac{\omega\cdot n_1}c\right)^2-\...
3
votes
1answer
89 views

How to avoid rounding error, when exporting numerical values

How to avoid the rounding error, when exporting data like this: ra = Range[0.004, 0.074, 0.0005]; Export["range.txt", ra] The result is this:
2
votes
0answers
85 views

How solve this equation and plot the results?

I want to solve the following function and get values for $\omega$. $$\omega - \omega_{21} + i/\tau_{2} - s_{1}\alpha_{1}(\omega)[1+f(\omega)] = 0$$ The function $f(\omega)$ is the troublesome ...
1
vote
1answer
39 views

Numerical solution to integration of function which parameters define the integral limits

I have following equation: $\int^{\delta_c}_{\delta_c-\pi}\sqrt{h^2_c(\cos(\delta_c)^2-\cos(\delta)^2+\Omega_c(\delta_c-\delta)}\text{d}\delta=\pi$, where $\delta_c=\frac{1}{2}\arcsin\left(\frac{\...
2
votes
1answer
74 views

Numerical artifacts appearing ONLY on boundary of 3Dplots and not on Plot

I have a behavior with 3D plots I really don't understand and I would like to correct it. I have a 2D function to plot, here is its graph with Plot3D : We can see that on the top boundary of $\Delta ...
1
vote
1answer
100 views
11
votes
3answers
706 views

Solve Laplace equation in Cylindrical - Polar Coordinates

Hey mathematica stackexchange!! I've got a (possibly stupid) problem. I've tried many things to no avail, and I've read every post I've found on Laplace's equation. Background: I'm trying to find the ...
3
votes
1answer
134 views

How to make Mathematica substitute exact numerical values of (derivatives) 2F1

I have a long output that contains Taylor expansion of some function. Some of the coefficients are combinations of the (derivatives of) 2F1 at nice integer values of the coefficients. I can see that ...
1
vote
1answer
74 views

Numerical error in compile, Strange behaviour in numerical evaluation

First of all, apologies for the large numbers, I couldn't find a working example for a far lower order and the zeros are necessary... my problem is this: I have a large polynomial (from high-order ...
1
vote
1answer
56 views

Partial Derivatives of numbers not evaluating?

I have code of the form someFunction[xx_?VectorQ] := 1 + anotherFunction[xx] myfunction[xx_?VectorQ]:= Sum[D[someFunction,xx[[a]]],{a,1,4}] After this evaluates, ...
2
votes
0answers
52 views

How to convert a dollar fraction into a normal dollar amount

I'm trying to use Mathematica to compute compounded interest. I used Wolfram Alpha, and it gave me the code ...
1
vote
1answer
58 views

Function not evaluating to zero - numerical errors

I have a complex but analytical expression that should always evaluate to zero for certain values, but I'm getting strange numerical noise I think I can avoid. The problem seems to occur in a ...