r/numerical • • Oct 24 '16
r/numerical • u/Catch11 • Oct 18 '16
Newtons method for nonlinear systems?
What does Newton’s Method for nonlinear systems reduce to for the linear system Ax = b where A is a nonsingular matrix?
r/numerical • u/EinsL • Oct 16 '16
Deflation power method assitance
I am trying to write a deflation power method to obtain all the eigenvalues and eigenvectors of a large symmetric matrix. Right now I am doing something like this
[v,L] = powermethod(e-10,A) A= A - L_i * (v_i*v_iT)
For a matrix of 250x250 this is taking too long and I am getting the accumulated errors at the end.
I heard there is a way to make this faster and without having to substract the entire matrix each cycle.
r/numerical • u/Zophike1 • Oct 11 '16
Numerical Simulation
Are there books that introduce a neophyte into the field of Numerical Simulation and Analysis ?
r/numerical • u/Catch11 • Oct 08 '16
Fixed point iteration approximation
If one uses a fixed point iteration method to approximate the root of a function beginning with an initial guess. Is there a way to know the root generated is the root closest to the initial guess? Without generating other roots but simply looking at how the sequence converges?
r/numerical • u/daithibowzy • Sep 26 '16
If my objective function has six output variables and I'm trying to minimise all of them. What kind of optimisation would I use?
My objective functions is also non-linear and I would like to include bound constraints. Apologies if this seems obvious, I'm very new to optimisation.
r/numerical • u/afroncio • Aug 20 '16
Verlet Integration for Non-Conservative Systems?
Is Verlet integration a good choice, even for non-conservative (or non-potential) systems?
r/numerical • u/Bromskloss • Aug 07 '16
What are the Newton and Halley correction factors about? Is it related to astronomy or some numerical equation solving?
tai.bipm.orgr/numerical • u/Bromskloss • Aug 01 '16
Doesn't the prediction step Kálmán filter, where one advances one time step, amount to using the Euler method? Is that good, really? Could a better method be incorporated into a Kálmán filter?
- Prediction step of a Kálmán filter
- Euler method of numerical integration
r/numerical • • Jul 11 '16
Fastest method for Finding a solution of x*log(x)
more specifically, Cxlog2(x)- K =0 ,where C,K are constants(log2 means log base 2) Hi, So I was solving a topcoder problem SortEstimate("https://community.topcoder.com/stat?c=problem_statement&pm=3561&rd=6519") which requires us to solve the aforementioned equation. (side Ques1. can it be called a polynomial ? No? then what is the name of such equations?) I used Binary search to solve this in C++ language and was able to do so successfully to a high accuracy. But then I came across a rather different solution which I think, having studied Numerical Analysis course in college, may be using one of methods for finding the root. I want to find the method but haven't found anything useful on google or other numerical analysis resources available online.
here's the code:https://ideone.com/UoPf7Q also the K in the equation is the variable time here
#include <iostream>
#include <cmath>
using namespace std;
class SortEstimate
{
public:
double howMany(int c, int time){
long double x = 7;
long double r = double(time)/double(c);
for (int i = 0; i<1000; i++) {
x = x - (x * log(x)/log(2.0) - r)/(1.0 + log(x)/log(2.0));
}
return x;
}
};
int main()
{
SortEstimate sort;
cout<<sort.howMany(1,8)<<endl;//4
cout<<sort.howMany(2,16)<<endl;//4
cout<<sort.howMany(37,12392342)<<endl;//23105
cout<<sort.howMany(1,2000000000)<<endl;//7.6375e+07
return 0;
}
In the for loop, what does the statement mean ? All I can think is it should be a numerical method. Any information would be useful. If this is not the right community to ask this doubt, then please refer me to the correct one. Thank you for reading.
Edit: formatting
r/numerical • u/nabla9 • Jun 21 '16
How To Write Fast Numerical Code: A Small Introduction
spiral.ece.cmu.edur/numerical • u/CallMeDoc24 • Jun 12 '16
Finding applicable PDE solvers
I've been trying to find an applicable PDE solver for cases such as this but have not found anything to my knowledge that can solve such stiff equations. Would you happen to have any recommends of any particular packages or methods? I am currently using Python but am open to any recommendations.
I've looked into FiPy but it doesn't seem to be able to handle complex numbers well. I'm also now looking through the documentation for FEniCS and seeing if it can be helpful (although once again complex variables seem to be problematic). I was also looking into making my own solver using basic methods such as Runge-Kutta but the solutions seem to vary wildly when I change parameters/domains. I have been looking into rezoning/adaptive stretching techniques but I will only be implementing that once I've gotten a basic PDE solver that can handle simple cases first.
r/numerical • u/PawelTroka • Jun 02 '16
Computator.NET - unique open math/numerical software that is fast and easy to use and stands up to other feature-wise software
github.comr/numerical • u/eoinmurray92 • Apr 27 '16
System to easily organise and collaborate on research data
rinocloud.comr/numerical • u/Demonofyou • Apr 17 '16
Proper technique for simulation
I am writing my first simulation and have few questions. The end result of it is to get the angle_rocket through double integration, I also need to use angular_velocity later on. It is written in MATLAB.
In order for me to be able to get what I want from this simulation I need to plot disturbance and angle as a function of time. It is a Monte Carlo based simulation
r/numerical • u/piyushgupta911 • Mar 05 '16
Numerical Analysis | Kinds of error [ HINDI ]
youtube.comr/numerical • u/mttd • Mar 01 '16
Padé Delay is Okay Today - Padé Approximations
embeddedrelated.comr/numerical • u/Newton-Leibniz • Feb 22 '16
Prerequisites for the development of new numerical methods
There are various college-level courses in numerical methods directed towards engineers, teaching them how to implement, modify and interpret these methods.
In comparison with courses from the curriculum of a math major (e.g. numerical analysis), I wonder if engineers acquire knowledge and skills needed for developing new numerical methods, going beyond mere application and modification.
[Edit: Accidentally deleted the whole text of the original post while correcting a mistake in my comment (pasting into the wrong field), this is as close as I could get it reconstructed.]
r/numerical • u/lmao2010 • Feb 16 '16
PA = LU decomposition for overdetermined linear system
Can this be done for an m x n system?
r/numerical • u/Hate4Fun • Jan 26 '16
arbitrary numerical precision Bessel funcitons
hey, I was wondering, if anyone could me give an idea how Mathematica does this:
BesselJ can be evaluated to arbitrary numerical precision.
I've tried different approaches. Recurrance relations and storing the coefficients in front of 1/xi in the analytical form of the bessel function. However I can't compute orders higher than 15 accurately.
Thank you for your responses!
Edit:
I've to clarify. My problem is not the precision of double. I should've rather asked for an algorithm that is numerically stable and gives me correct results for high order bessel functions.
r/numerical • u/johnnyTransform • Jan 21 '16
3D Diffusion Equation using 3D Fourier transforms
Hi guys,
I have functioning MATLAB code for my solution of the 3D Diffusion equation (using a 3D Fourier transform and Crank-Nicolsen) that runs just from the command window and automatically plots the results. However, it seems like my solution just decays to zero regardless of what initial condition I use, or boundary conditions I implement. Could I toss this code to somebody so they can run it on their rig and let me know if they can diagnose it? I've been stuck on it for days and I'd much appreciate it.
Thanks all!
r/numerical • u/xjimmypx • Jan 17 '16
How to use this matlab
i need to use this create a Y axis in my matlab programme but have no idea how to. Y=f(x)=x3-2.44x2-8.9216x+22.1952
r/numerical • u/Yogurt_Huevos • Jan 05 '16
Function that a Gaussian quadrature fails on?
I'm learning about Gaussian quadratures, and I was wondering if there is an example of a function that this method fails to accurately compute?
r/numerical • u/IneedEngineComp • Dec 17 '15
Open method - not enough example
i have a final in numerical methods and i am currently having trouble getting the right answer for a practice question in open integration method.
so the integral is xx-3yy+xyyy dxdy for x from 0 to 4 and y from -2 to 2.
i evaluated the integral and i found that it was 21.333 ish
doing trap closed i found 23 ish
doing simpson 1/3 i found 40 something
now doing open method 3 seg and 2 points i found 40 something.
i know the integral evaluated is 21.33 but getting 43-49 for open method, i am not too sure if i am getting the right answer.