Questions tagged [numerical-analysis]

Numerical analysis is the study of algorithms that use numerical approximation, as opposed to general symbolic manipulations.

263 questions
0
votes
2 answers

Articles on analysis of mixed precision numerical algorithms?

Many numerical algorithms tend to run on 32/64bit floating points. However, what if you had access to lower precision (and less power hungry) co-processors? How can then be utilized in numerical algorithms? Does anyone know of good books/articles…
anon
  • 41,035
  • 53
  • 197
  • 293
0
votes
2 answers

How to find the closest positive semi-definite matrix for an non-positive semi-definite matrix?

Here,I have an matrix,e.g,A,where A=[1 0.9 0.5;0.9 1 0.9;0.5 0.9 1],how to caculate its closest positive semi-definite matrix ? Is there any comand or algorithm ?
Purple
  • 11
  • 1
0
votes
1 answer

Implement custom nonlinear minimization, from symbolical math to C

Trying to solve a computer vision problem, I have to minimize a nonlinear energy function, implementing it in C++. Although I didn't find a library to help me with the specific function, I have the math for it. So what's the best way to go from…
cDc
  • 317
  • 3
  • 9
0
votes
0 answers

Javascript bigInt's

I am just getting started on numerical analysis. Let's say that i am performing some geometric operations in Javascript which require that i work with integers. What is the biggest integer size i can work with? I know JS can go to 32bit but with…
nicholaswmin
  • 21,686
  • 15
  • 91
  • 167
0
votes
1 answer

newton-raph func pointer in C

I am trying to implement the Newton-Raphson method using a single function pointer. The function must contain both the equation and its derivative. I am having difficulty passing through these two separate functions within the test function. …
Robert Penfield
  • 15
  • 1
  • 1
  • 5
0
votes
1 answer

Run batch file without getting prints on variables declarations [octave]

I'm working with a script file in octave. The problem is that it gets really messy when I declare big matrices because it prints them onto the command prompt. Is there an easy way to prevent that from happening?
Eduardo
  • 433
  • 1
  • 4
  • 10
0
votes
2 answers

How to format the values which comes from excel using java

I have a excel file with some values like : **Status Code** **Method Name** 400 createRequest 401 testRequest 402 mdm 403 fileUpload and the following code to read and print the…
Java Questions
  • 7,813
  • 41
  • 118
  • 176
0
votes
1 answer

Calculating an integral of two numerical solutions of an ode

I would like to calculate an integral, which is determined by two functions: I(T) = ∫0T i( f(t), g(t)) dt where f and g solves ordinary differential equations and i is known. The obvious approach would be to derive a differential equation for I and…
0
votes
2 answers

Advantages of a computer program over a math formula

I am not sure if this is the right place to ask this question, if not I will delete it if you guys tell me, but my question is related to transferring math techniques into a program. My question is: If I were to use a program to solve the quadratic…
Q.matin
  • 287
  • 1
  • 2
  • 7
-1
votes
1 answer

Equation solving using bisection method using python

I wrote a python code to find root of 2*x-4 using bisection method def func(x): return 2*x-4 def bisection(a,b): if (func(a) * func(b) >= 0): print("You have not assumed right a and b\n") return c = a while…
-1
votes
1 answer

Wolfram alpha and floating point arithmetic (loss of significance)

I'm studying floating point aritmetic. Suppose we are in double precision. We know that when we subtract two numbers which has "almost" the same magnitude, the relative error is large. In MatLab command window, for instance, if I…
-1
votes
1 answer

I can't determine the polynomial interpolation with the minumum grade

I have to restrict it with the folowings: P(-1) = f(-1), P(0)=f(0), P(1)=f(1), P'(1)=f'(1)
-1
votes
2 answers

python numerical error: big number add small number

This a exercise from Udacity's Deep learning course. Can anyone explain why the final answer is not 1.0? v1 = 1e9 v2 = 1e-6 for i in range(int(1e6)): v1 = v1 + v2 print 'answer is', v1 - 1e9 # answer is 0.953674316406
Mark5907
  • 411
  • 1
  • 5
  • 16
-1
votes
1 answer

First order conditions with exponentials in Mathematica

I have tried using the 'Solve' and 'NSolve' functions in Mathematica to find the value of p that maximizes (p-1)(1+exp(u-p)+exp(v-q)) - exp(u-q) = 0, where u,v,p,q are greater than 0, to no avail. What other functions can I use?
-1
votes
1 answer

How do I transform a column of data into a normal distribution in MATLAB?

If I have a vector a, which is not follow normal distribution. How do I transform them into normal distribution in MATLAB? which means I create a new vector b that follow the normal distribution and have the information of a.
Peter Zhu
  • 1,154
  • 3
  • 15
  • 27
1 2 3
17
18