Numerical analysis is the study of algorithms that use numerical approximation, as opposed to general symbolic manipulations.
Questions tagged [numerical-analysis]
263 questions
-1
votes
1 answer
Integral calculation using trapezoid or simpsons rule
Basically the assignment says "find the solution to f(x) = 0....". where f(x)= integrate (1/sqrt(2*pi))exp(-t^2/2) dt from x=0 to x - 0.45. Sorry I could not find out how to put the integral in here.
my prof. gave us a little hint how to…

un known
- 39
- 5
-1
votes
2 answers
What's the root and what's the useful of finding the root in algorithms like bisection?
I already solved a bisection algorithm using C++ as a language, I think the main purpose is to find the root.
I understood the whole algorithm, but I didn't understand what the root will do or what will be the the purpose of root if we find it.

Caffe Latte
- 1,693
- 1
- 14
- 32
-1
votes
2 answers
If statement not evaluating TRUE when it should
I have an array of "x" values (a grid for a PDE solver) that when I pass to a function that fills another array based on these x-values, a particular expression involving one x-value does not evaluate properly. The x-values range is -1:1 at an…

bcf
- 2,104
- 1
- 24
- 43
-2
votes
1 answer
Why am I receiving this error "cannot un-pack non-iterable NoneType object"?
I am using Gaussian Quadrature to evaluate an integral and I am getting this error... I've used this before and it works fine. Am I missing something simple?
def gaussxw(N):
#Initial approximation to roots of Legendre polynomial
a =…

Vitani Pi
- 1
- 1
-2
votes
1 answer
Computing and determining the convergence rate
Write a MATLAB code to compute and determine the convergence rate of :
(exp(h)-(1+h+1/2*h^2))/h with h=1/2, 1/2^2,..., 1/2^10
My code was:
h0=(0.5)^i;
TOL=10^(-8);
N=10;
i=1;
flag=0;
table=zeros(30,1);
table(1)=h0
while i < N
…

LiLi
- 1
-2
votes
1 answer
Java - program to recognize numerical function?
I'm currently writing a program that helps me recognize functions in numerical sequences that simply writes out the difference between each number.
Like if I give it the sequence [21, 20, 18, 15, 11], it'll return [-1 -2 -3 -4] helping me to…

user1531921
- 1,372
- 4
- 18
- 36
-2
votes
1 answer
MATLAB: Approximate tomorrow's temperature with 2nd, 3rd and 4th polynomial using the Least Squares method
The following is Exercise 3 of a Numerical Analysis task I have to do as part of my university course on the subject.
Find an approximation of tomorrow's temperature based on the last 23
values of hourly temperature of your city ( Meteorological…

Dimitris Sfounis
- 2,400
- 4
- 31
- 46
-5
votes
1 answer
Numerical analysis matrix image in python
what can i do with a matrix image?
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
img=mpimg.imread('image.png')
imgplot = plt.imshow(img)
i've already thought:
-difference between same image to notice some movement
-Transpose…

cricket
- 21
- 5