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
1
vote
1answer
73 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
66 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
38 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 ...
3
votes
1answer
126 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
95 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
43 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
77 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
101 views

How see 0 instead of (0.*10^-4)? [closed]

I have this: ...
11
votes
3answers
961 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
142 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
79 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
54 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
71 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 ...
1
vote
1answer
31 views

Setting the parameters in a defined function vs replacement rule in the formula

I have the following definition in my Mathematica notebook. ...
2
votes
1answer
39 views

Question related to IntegerPart

I am having trouble understanding the following result: Through[{IntegerPart,FractionalPart}[{100 4.02}]] {{401}, {1.}} ...
0
votes
0answers
59 views

Integrate a multivariate function similar to a delta function

I am doing a code in Mathematica. I have the following function: ...
0
votes
0answers
81 views

Change of variables in integral is not working

Consider the matrix ...
3
votes
1answer
86 views

Is this bifurcation or numerical error?

I encountered a definite integral (with parameter $k$) that produces the "chaotic" figures below. $$F(k) \equiv \int_{\theta_k}^{\theta_{k+1}} f(\theta, J \sin\theta - k)\,\mathrm{d}\theta~, \qquad f(...
3
votes
1answer
78 views

Numeric values for MinkowskiQuestionMark

Why NumericQ[MinkowskiQuestionMark[Pi]] returns False? Is it defined only for algebraics? Numerical evaluation gives some number,...
2
votes
2answers
86 views

How to avoid problems with the large imaginary part of LegendreQ?

I am trying to evaluate sums involving LegendreQ[n,x], the n-th order Legendre function of the second kind $Q_n(x)$, at large $x>1$. However, the problem is that ...
2
votes
1answer
109 views

How to get Mathematica to Return an Actual Numerical Result For Probability? [closed]

This is a painfully basic question. It's probably been answered before (or might be in one of the documentation packages), but I've been looking for some time and can't find it! (Though it could very ...
1
vote
1answer
90 views

Strange numerical values [closed]

I have a table of numerical values which contains a lot of strange values. ...
0
votes
2answers
111 views

Why does mathematica not recognize the equality of these two terms? [closed]

I have two expressions which I have analytically verified to be equivalent but when I check them numerically via mathematica I don't obtain numerical agreement. They are ...
7
votes
2answers
221 views

how to get single, and quad Precision out of Mathematica which match Fortran result

by default, if a number has decimal . after it, then Mathematica will do computation using machine Precision, which on my PC (intel hardware) running windows 7 64 ...
0
votes
2answers
76 views

Numerical Function

I want to animate a Point moving on an ellipse, but the angle I need to use is a numerical solution from an epression. How can I get mathematica to just take the value from the animated nummerical ...
1
vote
1answer
51 views

TrigExpand for numerical multiples of angles

After some calculations, Mathematica gives me a result which has in it a term Cos[2.x] (I cannot skip numerical computing, that's the reason for the ...
0
votes
0answers
37 views

Error caused by ThreeJSymbol

I do not understand what causes non-physical answer in my code although I have read about the error. I am also getting the following error, how could I fix the example error: "CompiledFunction::cfte:...
0
votes
1answer
44 views

Numerical Results with replacement rules [duplicate]

Why are the following outputs different? N[(x^2 + y^2) /. Thread[{x, y} -> {1., 1.}], 10] gives 2.. N[(1^2 + 1^2), 10] ...
1
vote
1answer
96 views

Get Finer Grid with respect to x using NDSolve in Mathematica

I use Mathematica NDSolve to numerically solve V(x,t) and export the numerical values of V(x,t) at each x and t into an external csv file. I find Mathematica only numerically give results with step ...
5
votes
0answers
232 views

How does NSolve find the roots to an equation?

I'm using NSolve to find the roots to a transcendental equation. For this, I need to specify a bounded region where roots are searched. What I want to know is how <...
1
vote
1answer
66 views

Optimising matrix calculation [closed]

I was calculating the elements of a matrix like this: ...
18
votes
2answers
666 views

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

Questions What are the available resources to deal with experimental error and uncertainty propagation in Mathematica? Given that Mathematica already uses linearized model of error propagation on ...
2
votes
1answer
155 views

Orthogonalize with a custom inner product

Bug introduced in 9.0 or earlier and fixed in 10.0 I was trying to define a custom inner product function for Orthogonalize, and have been getting some odd behaviour. Here's a MWE: I try to compute ...
0
votes
0answers
59 views

Evaluating expression with machine arithmetic gives wrong answer but evaluating with arbitrary precision works

I need to understand how Mathematica approximates symbolic numbers. I have an awful symbolic number to compute. When I do N[variable] Mathematica gives me <...
0
votes
0answers
129 views

Limit of a List

Is it possible to take the limit of a list instead of using the Limit method? I'll try to explain what I mean. I am generating a list of numbers that converge to some number. The generated numbers ...
1
vote
0answers
80 views

Why the data from Do-command disagree with the plot I get using them? [closed]

This is a question relevant to How to plot output data of Do-command? The Differential Equation at hand now is $\frac{d^2 f}{dx^2} + \frac{2}{x+0.1} \frac{df}{dx} = k(f)$ I give the code with the ...
5
votes
3answers
231 views

How to plot output data of Do-command?

The following in a simple numerical solution of the simple harmonic oscillator. ...
0
votes
0answers
109 views

Problem with FindRoot + NDSolve + InterpolatingFunctionDomain

I'm trying to find the root (po) of a complicated problem (where s is a parameter): First, I need to define some functions, which involve numerically solving a differential equation. ...
1
vote
4answers
207 views

How to solve the following set of equations to find values of a1, a2, and a3

i am new to Mathematica, Can some one kind enough to show me how to solve the following set of nonlinear equations to find a1, a2, and a3.. ...
1
vote
0answers
40 views

Numerical evaluation after Normal? [closed]

I'm interested in numerical evaluation thru substitution: a /. a -> 1 (*=> 1 *) However if I used Normal in the "pipe" —...
0
votes
1answer
93 views

Numerical value of an expression with a uniform step size [closed]

I have a complex expression that is so difficult to separate its Real part from it Imaginary part. What I thought of doing is to get the numerical value of the Real and Imaginary part, Then I will use ...
0
votes
1answer
312 views

Specifying precision of a number in StringForm[]

I want to use StringForm to provide the headers to a table of numbers I have just calculated. Basically, I want the top row of spots in the table to have the form $D = x~~\text{(nm)}$, where x ...
3
votes
2answers
261 views

Visualizing the Schrödinger equation for dipole based interaction Hamiltonian

I want to evaluate and plot the solutions of coupled linear differential equations. For each time frame, I want to display the probability values (corresponding to mod square of these solutions), and ...
0
votes
2answers
187 views

Numerical Differentiation of a Numerical Integral

I am trying to evaluate the following expression numerically $$\frac{d^2}{dt^2}e^{-2t^2}\int_0^\infty\frac{\xi/\sqrt{2}}{\xi^{3/2}}e^{(-\xi^2/2-2\xi t))}$$ My code is as follows ...
4
votes
1answer
91 views

N[Product] and NProduct give different results

I have some trouble. I've been using finite product to study a certain function (see below). However, when I wanted to compute it precisely, I decided to use ...
0
votes
1answer
83 views

How to fix step size in do loop? [duplicate]

I apply the following command: Do[Print[var[u] = u], {u, -1, 1, 0.1}] It produces out put. But when i recall the value var[-0.4] as below: ...
5
votes
3answers
292 views

How to complete function which is not defined for all interval

I have a function testF22 like this ...
0
votes
1answer
219 views

Solving a complex equation

I try to solve a complicated equation. To do that, I write (excuse me, I could not copy paste in an appropriate way from the notebook) ; ...
1
vote
1answer
121 views

Numeric calculation with many digits

I try to calculate something like 1.569732312*Pi and by default mathematica returns something like 4.93146 (only 5 digits after floating point), but I believe there is much more digits, especially ...