instruction stringlengths 43 28.1k |
|---|
I have been learining the NURBS theory by the classical textbook "The NURBS Book" this year. In the chapter 9, the author introduced the method of non-rational B-spline curve interpolation with a open curve.
I have implemented this global B-spline curve interpolation algorithm with the Wolfram Mathematica. About the de... |
In a trust region based Newton method, a number of constants are given as inputs to the algorithm that determine the updating rules for the trust region bound. Are these constants chosen arbitrarily or are there some rules that govern these constants.
For instance refer to this paper http://www.csie.ntu.edu.tw/~cjlin/p... |
For a large matrix $A$, I need to evaluate the $\log(\det(A))$. I already have it's LDLT decomposition.
Is it possible to evaluate the $\log\det$ with the elements of the diagonal $D$ of the LDLT decomposition?
Thanks!
|
I need to evaluate Kummer's confluent hypergeometric function for imaginary arguments:
$$_1F_1(a,b;ix)$$
where $i$ is the imaginary unit, $a,b,x$ are real, and $a,b>0$. Is there a routine available in C/C++? I already saw GSL, but it only computes $_1F_1$ for real arguments.
|
I have a $80\times200$ matrix, and I want to plot its contents with the contourf command in MATLAB, as follows:
\begin{align}
&\text{[C,h] = contourf(mat,100);}\\
&\text{set(h,'LineColor','none');}
\end{align}
The resulting image, as you can see, has some step-like discontinuities where the white part meets the coloure... |
Quadratic Pseudo-Boolean Optimization (QPBO) problem:
Problem 1. Minimize $\sum_i a_ix_i + \sum_{i<j} a_{ij}x_i x_j$ subject to $x_i\in\{0,1\}\forall i$.
Consider the following problem, where the integral constraints are relaxed:
Problem 2. Minimize $\sum_i a_ix_i + \sum_{i<j} a_{ij}x_i x_j$ subject to $0\le x_i\le 1\f... |
How to find $C$ such that $CC^T = AA^T + BB^T$, $A$ and $B$ are known.
$A = \left(\begin{matrix}X\\Y\end{matrix}\right)$, $B = \left(\begin{matrix}0\\cY\end{matrix}\right)$, $c$ is a constant.
To clarify. Cholesky decomposition can give the solution. I was wondering is there any closed form solution?
|
I am modeling the temperature of the groundwater using heat equation.
I have Dirichlet BC at the top but at the bottom I have constant temperature equal 12 degrees C (see attached pic). It is look like at the bottom we have zero flux. When I specify the Dirichlet BC I have a "knee" right before "neutral zone" which i... |
I would like to know the career options for a computational scientist other than getting into software industry. I wish to use the my skills of Numerical Linear Algebra,Parallel Programming, Scientific Visualization,Topological Data Analysis in some Research Lab of any manufacturing company or Scientific company.
|
We have the recurrence relation:
$5x_{n+1}-x_n=\frac{1}{3}$
$x_0=\frac{1}{12}$
solution: $y_h=(\frac{1}{5})^nC$ $y_p: 5A-A=\frac{1}{3} $
$ A=\frac{1}{12}$
$y=(\frac{1}{5})^nC+\frac{1}{12}$
$y(0)=C=0$
Will the answer go to
$ \frac{1}{12}$ or somewhere very close to $\frac{1}{12}$?
The answer sheet says very clos... |
Somebody on my team wants to paralelize IPOPT. (at least some of functions of it). I have not been able to find a GPU implementation of it or a similar package. Nor I've found anything on their docs.
So the question is, is there an alternative already implemented on GPU? or at least somebody working on porting it to GP... |
Warning: Failure at t=6.137539e-04. Unable to meet integration
tolerances without reducing the step size below the smallest value
allowed (1.734723e-18) at time t.
In ode15s (line 730)
In khademi (line 59)
|
When we simulate a bulk molecular system using molecular dynamics in (say) NVE ensemble (microcanonical), we apply some periodic boundary conditions (PBC) to avoid surface effects. What effect does this have on quantities like Pair Distribution function, since it so happens that part of a molecule is near one edge of t... |
I am simulating the sound wave propagation in non-rectangular and asymetric spaces using finite-difference method. I presume linear acoustics equations to be enough (i.e. $\Box p = 0$, $\Box \vec{v} = 0$) and I need to have open and closed boundaries of the system (e.g. node or antinode of acoustic pressure on the wall... |
I have several probability distribution histograms of images that I am comparing to test for dissimilarity. Each histogram has 256 bins, the bins are common for all histograms.
The images are taken in very low light conditions, using narrow bandpass filters and illuminated by the same light source (with any other ligh... |
Suppose I have a linear system
$$
\left\lbrack
\begin{array}{cc}
M_1& S\\
S^{\mathrm{T}}& M_2
\end{array}
\right\rbrack \left\lbrack \begin{array}{c} X\\ Y\end{array} \right\rbrack=
\left\lbrack \begin{array}{c} F\\G\end{array}\right\rbrack,
$$
where $M_1\in \mathrm{R}^{n\times n}$ is symmetric positive definit... |
I want to solve 7 pde's that are functions of time, radius(j) and length(i). I used the method of lines and converted them to a system of odes in time and it becomes something like this:
$$dy/dt=((y(i,j)-y(i,j-1))\Delta{r} )+(y(i,j)-y(i-1,j))\Delta{x}$$
I define all of the equations in one function in MATLAB. This is m... |
Is there a Fortran subroutine which performs linear interpolation in one-dimenional data?
I need something similar to MATLAB function interp1.
|
I am creating a random configuration of particles for a molecular dynamics simulation, where I would like to guarantee a certain density.
The strategy is as follows:
choose randomly the positions of the particles in $x$- and $y$-axis in square of the side length equal to $a$.
compute the distance between every pair of... |
I am working with symmetric matrices of order $n \times n$ where $n \leq 50$. The diagonal elements of my matrices are a fixed number $d$ and the off diagonal elements are limited to two small numbers $\{a,b\}$.I know $a,b,d$ in advance.
For any such matrix I need to be able to determine whether its determinant is nega... |
I'm not sure how I can represent and solve the following problem.
I have a list of sales (timestamp and quantity) and a list of corresponding inventory draws (timestamp and quantity). What I ultimately want to achieve is to identify inventory draws not accounted for by a sales transaction (ie. missing inventory taken)... |
I would like to have both the normal (xx) component and shear (xy) component of a 2D (stress) tensor defined on a boundary (y=const, for instance) for an equation which is of the type
$$
\nabla \cdot \sigma = 0
$$
The normal value of $\sigma_{xx}=P$ at $x=0,1$ can be accounted for via a Neumann boundary condition, in ... |
From Wikipedia:
Explicit methods calculate the state of a system at a later time from
the state of the system at the current time, while implicit methods
find a solution by solving an equation involving both the current
state of the system and the later one.
Then why the Crank-Nicolson is considered implicit in... |
Suppose I have a mesh of the sphere (points on the sphere and a triangulation).
What is a good and efficient way to find the triangle which contains a point on the sphere (the point does not need to be a triangulation node)? It would be nice if the operation could be vectorized, to improve Matlab speed.
The purpose ... |
I am trying to program the pieceewise quadratic lagrange, but I have to deal with these intervals at which the point I am trying to evaluate belongs to. So, essentially you need to have an if statement before we apply the formula, here is a picture of it.
I am not sure how to write the if statement, if anyone can help... |
Given a sparse rectangular matrix $A$ (let's say, with dimension $n,m$ and number of non-zero elements $O(n)\sim O(m)$) with entries in $\mathbb Z/2\mathbb Z$ I'm looking for a basis of the kernel as a $\mathbb Z/2\mathbb Z$ vectorial space.
I know that applying Gauss I can easily find them, but it doesn't use the hyp... |
I am trying to implement adaptive mesh refinement for a finite element code. The code uses (at least for now) linear triangles and so when I do the mesh refinement I want the triangular mesh to remain conformal, i.e. no hanging nodes:
I am planning to use the longest-edge bisection method by Rivara [33,34]. Unfortunat... |
I am looking at approximating my function $f(x)$ using a Chebyshev and Legendre series and I ran into this question.
Is interpolation using $n+1$ Chebyshev nodes the same as representing the function using the first $n+1$ Chebyshev coefficients in its Chebyshev series, i.e., is $$f(x) = \sum_{k=0}^n f(x_k) l_k(x)$$whe... |
I have an existing FEM code that solves the linear elasticity problem. I would like to use the same code for large strain rates, still using a simple material law (Saint Venant–Kirchhoff model). [The problem I want to solve is a contact problem in which strain is larger than 1 very locally, close to the contact point]
... |
I can't imagine I'm the first to think about the following problem, so I'll be satisfied with a reference (but a complete, detailed answer is always appreciated):
Say you have a symmetric positive definite $\Sigma \in \mathbb{R}^{n \times n}$. $n$ is thought of as very large, so holding $\Sigma$ in memory is impossible... |
Suppose I want to simulate the well-known diffusion partial differential equation in 2D, for example with finite elements or finite differences. Can I directly take physical diffusion coefficients from the 3D real world or do I have to adjust them for 2D?
|
I need to compute the pseudo-inverse of a very large rectangular dense matrix without any special structure or properties. I run out of memory/computing power and have no access to a large parallel computing resource.
However, the good news is that I need only one column of the result at a time (for the subsequent ca... |
I'm looking for some methods that could be directly applied to the PDE
$$
\frac{\partial u}{\partial t} +
\frac{(u_x)^2}{2} = 0\tag{*}
$$
without converting it by $v = u_x$ to the Hopf equation
$$
\frac{\partial v}{\partial t} +
\frac{\partial (v^2/2)}{\partial x} = 0.
$$
Ideally, a WENO scheme is perfect, but I'm wo... |
Let $A\in \mathbb{R}^{n\times n}$ be symmetric positive semidefinite, and $B\in \mathbb{R}^{n\times n}$ be symmetric positive definite. Suppose $B$ is block diagonal so it is easy to invert. (We have access to the entries of $B^{-1}$ in the computer). Let $\omega \in \mathbb{R}$. Suppose I want to solve the followi... |
Are there any limitations of particle in cell (PIC) method for high density plasma? To be more specific, is modeling of a narrow channel of high density plasma possible or are there any limitations connected with PIC approximation?
|
In the Non-Negative Matrix factorization (NMF), you basically compute an approximation of a given matrix $V \in \mathbb{R}_{+}^{n \times m}$ into matrices $W$ and $H$ such that $W \in \mathbb{R}_{+}^{n \times r}$ and $H \in \mathbb{R}_{+}^{r \times m}$. Or in other words, $V \approx WH$. For the Sparse NMF with sparsit... |
I have to maximize
$$f(x,y)=-\log(xy)$$
However I need it over the polytope $T=\mathrm{conv}\{(1/2,1/2),(1,2),(2,1)\}$ and this gives me problems:
Then I get
$$f_x(x,y)=1/x=0$$
$$f_y(x,y)=1/y=0 $$
and I get $x=1$ and $y=1$. However, I know the answer is $(1/2,1/2)$? But I simply don't see why. The point $(1,1)$ is in ... |
Can anybody help me? I heard that Gauss-Newton method compute an aproximation of the Hessian instead of the true Hessian, but, quasi-Newton method too, don't it? what is the differences between them?
any help would be appreciated :)
|
User hardmath, provided an excellent overview of how to handle overflow when calculating the product of two functions, where one is likely to overflow: https://scicomp.stackexchange.com/a/20913/9466
The answer also discusses special cases involving $\textrm{erf}$ functions, which was discussed as an example in the ques... |
In this excellent answer, it is recommended that one make use of the $\textrm{erfcx}$ function to avoid roundoff error in calculating dealing with $x < 25$ (approximately). So, one scales their answer by $e^{x^2}$, and then scales back, I suppose (?) to recover the number they are really looking for?
What if we have t... |
I am looking to solve a class of SDPs with complex entries, with the semi-definite cone $S^n$, $n$ around 5000 to 15000. Also, $m$, the number of equality/inequality constraints is close to $n$.
I tried SeDuMi and SDPT3 with CVX, but I quickly run out of memory for $n=1000, m=1000$ (I have about 50 GB available). Could... |
So I'm trying to construct a 2 fold oversampled cosine basis in MATLAB. I know how to construct the basis as a square matrix using the following command:
dct(eye(n,n))
where dct is the discrete cosine transform function and $n\times n$ is the size of my basis but how would I do this if I wanted my basis to be oversamp... |
Is there a fast algorithm for computing the matrix square root of a real symmetric matrix using random matrices or randomized algorithms?
|
Let $A\in \mathbb{R}^{n\times n}$ symmetric and positive semidefinite, and $\omega\in \mathbb{R}\setminus\{0\}$. I am interested in solving the following linear system for a range of values of $\omega$:
$$((A-\omega^2 I)(A-\omega^2 I)+\omega^2 I)x = b.$$ It may be useful to note that the matrix factors as
$$
(A-(\ome... |
I just started leaning Julia, and my command of it is still very preliminary. I am trying to reorder a Schur decomposition. In Matlab, I could use the ordqz command and just had to specify the ordering by passing a string argument. In Julia, my understanding is that this is achieved by the matrix select in the command
... |
Convert the following model into an LP model. Note that you're not being asked to convert this to standard form.
$$\min z = \max (x_1, x_2, x_3, 2000)$$
s.t.
$$-2x_1 + x_2 + x_3 \geq -4$$
$$3x_1 - 4x_2 + x_3 \leq 12$$
$x_i \geq 0$ for all $i$
I am having difficulty thinking through how to set up an objective function ... |
I am learning SPH method. At the moment I am trying to implement simulation described in this very good article. However I don't get how the ghost particles properties are computed:
Position of the ghost particle:
$$\textbf{x}_{i,G}=2\textbf{x}_w-\textbf{x}_i,$$
where $\textbf{x}_i$ denotes the $i^{th}$ particle posi... |
What are some of the methods used to test for the exactitude of a numerical solution, given that the analytical solution isn't available, and the numerical solution converges ?
|
I want to solve 3 coupled PDEs equations. They depend on time, radius and length. I used the method of lines (MOL) and converted them to a system of ODEs in time. Now I want to solve them using MATLAB. Here are the equations:
\begin{align}
&\frac{\partial C_{i,p}}{\partial t} + \frac{u_{cp}C_{i,p}}{r} + C_{i,p}\f... |
In the context of a research project of mine, I am faced with the difficult task of modeling the mixing of two fluids in a container. I would like to achieve the following:
Given a container (cylindrical or spherical) containing a static mixture of gases (carbon dioxide + nitrogen), an inflow channel of oxygen into the... |
I am trying to understand how boundary conditions are implemented when one uses the nonlinear LU-SGS algorithm for Euler equations. Most papers describe the Gauss-Seidel sweep over mesh cells, but do not explain how are boundary conditions applied. I could either consider the same BC implementation as in explicit case ... |
For my thesis, I look in trajectories of vehicles through an atmosphere at very high velocities. I have a set of equations of motion, which I propagate using a Runge-Kutta-Fehlberg (RKF) 7(8) numerical integrator, one that has already been developed by the department of my university. The entire code is programmed in C... |
First off some context. The Traveling Salesman Problem(TSP) is to find the most efficient route passing through a series of points only once. However, there is no perfect function to solve for this in a reasonable amount of time. Because with each additional point, the number of possible routes is greatly increased. Th... |
I have a mesh which represents a 0-genus model. My goal is to construct a homeomorphism from that mesh to its bounding sphere.
I'm trying to understand a paragraph in http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.42.2762&rep=rep1&type=pdf :
The basic idea
of [the algorithms to project a 0-genus mesh on th... |
This is a follow up question to this question.
Consider the following SDP in standard form:
\begin{align}
&\min_{X\in S^n, X>0} \operatorname{tr}(AX)\\
&\mbox{subject to}\; \operatorname{tr}(B_iX)\leq b_i, i=1,\dots,m\\
\end{align}
Here, $A\in S^n,B_i \in S^n$, $b_i\in \mathbb{R}$ and $m=O(n)$.
Can anyone please explai... |
I'm developing an FEM solver for a coupled system. I have diffusion and potential equations which result in positive definite matrices for each equation, but the coupling makes the overall system matrix non-symmetric, non-positive-definite.
The solver is planned to run entirely on a GPU. Mesh and data representation is... |
I am attempting to simulate projectile flight with drag. However, with a timestep of 0.1 seconds, I am consistently getting an error of ~0.1-1%.
while p[1, iterr] >= 0 and iterr < 9999:
p0 = p[:, iterr]
v0 = v[:, iterr]
pp1 = h * v0
vp1 = h * f(v0)
pp2 = h * (... |
I have a sparse $2\times10^5$ by $2\times10^5$ matrix with $3.2\times10^9$ non-zero elements.
I want a sparse solver with out-of-core functionality. I have attempted to use Intel's MKL pardiso, with a varying degree of success. For smaller problems, it is stellar, but for the problem size above, it is taking a huge amo... |
Let a Matrix $\mathbf{Y=[A\;b;b^T\;}d]$, where $d$ is a scalar, and $\mathbf{b}$ is a vector.
How to find the cholesky factorization of $\mathbf{Y}$ if i know the cholesky factorization of $\mathbf{A}$.?
|
Solving acoustical wave equation:
$$
c_0^2\partial_{xx}p-\partial_{tt}=0
$$
using forward-time centered-space FDM is not very convenient cause of numerical dispersion etc.
What about using a little physics and solve this as a system of first order equations (linearized Euler equations), i.e.:
$$
\nabla p = -\rho_0\part... |
I want to calculate the following equation:
$$\frac{\theta \Gamma \left(\kappa+1,\frac{o}{\theta }\right)-o \Gamma \left(\kappa,\frac{o}{\theta }\right)}{\Gamma (\kappa)}+o+s$$
with $s>0, o>0, \kappa>0, \theta>0$ and in which $\Gamma(\kappa,x)$ represents the upper incomplete gamma function and $\Gamma(\kappa)$ the (... |
I want to solve a Sturm-Liouville problem in 1D, i.e.,
\begin{align}
[p(x)\ u'(x)]'+q(x)u(x) = f(x)
\end{align}
with boundary conditions
\begin{align}
u(0)=a \hspace{1cm} u'(0)=b
\end{align}
How do I implement these conditions?
What I did:
First I multiply both sides by a test function $v\in\lbrace c\in H^1\big\vert v(... |
I am trying to solve the elasticity equation using Crouzeix-Raviart element. Since this can not be solved using continuous FEM I am trying to solve this by discontinuous Galerkin method. In the discontinuous Galerkin formulation the left hand part of equation $a(U,v)$ term has two parts, the first part is the stiffness... |
This is a visualization/programming design problem. I am working on building a geospatial agent based model, meaning that there are multiple agents interacting within some particular spatial container. The movement of the agents and their interactions are based upon some biased random walks and integro-differential equ... |
I am solving a problem involving the line with the set of points $(x_3,y_3)$ that are equidistant to two given points $(x_1,y_1)$ and $(x_2,y_2)$. The equation for this line is
$$(x_3 - x_1)^2 + (y_3 - y_1)^2 = (x_3 - x_2)^2 + (y_3 - y_2)^2$$
which boils down to
$$2 (x_1 - x_2) x_3 + 2 (y_1 - y_2) y_3 = x_1^2 + y_1^2 -... |
I am Computer Scientist and now I am interested in matrix multiplication on GPUs. My research are focused on matrix free finite elements method where I multiply sparse matrix. Sparse matrix could multiply regular or matrix free. In general based on special coordinate function. I have a few general question: How popular... |
I am Computer Scientist and now I am interested in matrix multiplication on GPUs. My research are focused on matrix free finite elements method where I multiply sparse matrix. Sparse matrix could multiply regular or matrix free. In general based on special coordinate function.
I have a few general question:
How popular... |
Why do people use the classical least squares approach so often ? If I use the absolute value instead of the power, I immediately know how far away the solution is:
$$ res = \frac{abs(x - x_{model})}{x}$$
What is the benefit of squaring ?
|
We're currently solving the heat equation as a part of the PDE sequence in class.
We've been given the formula:$$T(i, n+1) = T(i,n)+\alpha \left [\frac{T(i+1,n)-2 T(i, n)+T(i-1,n)}{\Delta x^2} \right ] \quad \Delta t$$
I've got boundary conditions handled. They aren't the problem.
The problem here is, if one notices, $... |
I was estimating a falling object's position versus time by using a simple first order step function, where
for i=2:length(t) % We're using Euler, so we need an initial previous point to start t=t(i);
V=V+dv;
rho_i= % Calculate our height and then pull rho from data
K=(m/(mg-.5*C_d*A*V^2*rho_i));
dv=dt/K;
... |
I am a student doing physics hons and have had very little experience in programming. This semester we are supposed to do a computational project in thermodynamics. I have to solve these two coupled diff eqns:
$$
\begin{aligned}
ω (p,T ) &= \frac{p ^2}{2m} + \frac{2}{N}\sum_q f(p − q)\,n (q) − \frac{1}{N^2}\sum_{s,t} f... |
I was estimating a falling object's position versus time by using a simple first order step function, where
for i=2:length(t) % We're using Euler, so we need an initial previous point to start
t = t(i);
V = V + dv;
rho_i = % Calculate our height and then pull rho from data
K... |
This question is a follow-up to this one.
Let $A\in \mathbb{R}^{n\times n}$ be large, sparse, symmetric and positive definite. Suppose for I already know $m<n$ eigenpairs of $A$, corresponding to the largest eigenvalues, i.e. $\{( \lambda_i, \vec{q}_i) \}_{i=1}^m \subset \mathbb{R}^+\times \mathbb{R}^n$.
I need t... |
I am using MATLAB's PDE toolbox to solve the differential equation
$-\nabla\cdot\left(c(x)\nabla u(x)\right) + a(x)u(x) = f(x)$
The particular problem in question is an electrostatic problem, but has the solution (voltage) specified at several points inside the domain. Since the PDE tool is setup to apply boundary cond... |
I'm working on a fluid solver using dual-time stepping and everything works really well, except the convergence in pseudo-time is slow. I'd like to accelerate the convergence. I know multigrid methods are typically used, but I am thinking about exploring another approach that is, hopefully, easier to implement.
I star... |
What equation would you all use to estimate the wind speed over the Mojave Desert in December? I'd like to model the speed of the wind up to say 50 thousand feet.
I read up about wind speeds on Wikipedia and they give an analytical formula for wind gradient:
$$\\ v_w(h) = v_{10} \cdot \left( \frac {h} {h_{10}} \right)... |
I have made a solver based on the SymPy.diffgeom library, where I use Scipy.Integrate to solve the following system of second order differential equations :
\begin{align}
u'' &+ \Gamma^0_{00}(u')^2 + 2\Gamma^0_{01}u'v' + \Gamma^0_{11}(v')^2 = 0,\\
v'' &+ \Gamma^1_{00}(u')^2 + 2\Gamma^1_{01}u'v' + \Gamma^1_{11}(v')^2 ... |
I want to solve a integer programming problem with binary variables $x_1,\ldots,x_n.$
I have a permutation group $G \leq S_n$ such that for every $f \in G$ the vector $\overline{x}_1,\ldots,\overline{x}_n$ is a feasible solution if and only if $\overline{x}_{f(1)}, \ldots ,\overline{x}_{f(n)}$ is a feasible solution.
... |
I have to solve a simulation of fluid flow on Ansys, but my prof wants me to run a parallel simulation using the Volume of Fluid method in something with more visible guts than Ansys? Any recommendations, or should I try doing it in Matlab?
|
I have the following optimization problem:
$$
\begin{array}{ll}
\text{Minimize} & \frac{1}{x_1} + \frac{1}{x_2} + \ldots + \frac{1}{d_n} \\
\text{Subject to} & A x \leq b
\end{array}
$$
where $x = [x_1~~x_2~~\ldots~~x_n]^T$, $x_1,x_2,\ldots,x_n \in \left\{1,\frac{1}{2},\frac{1}{3},\ldots, \frac{1}{k} \right\}$for some... |
I have the following problem. Let's say we have $x_{jk}$ it is an expression value of gene $j$ in a sample $k$. It is the average of expression levels across the cell types $s_{ij}$, weighted by respective proportions $a_{ki}$ ($i = 1 \cdots N$, $N$ is the disease type):
$$
x_{jk} = \sum_{i=1}^{N} a_{ki}s_{ij}
$$
Gener... |
Where can I find manufactured solutions for the 2d Euler equations, with the complete analytical terms, including the Jacobian of the source term ?
|
The boundary value problem is
$$
\begin{cases}
\dot{x}_i =
\begin{cases}
(0.5D^{-1}\psi)_i, \text{ if }(0.5D^{-1}\psi)_i \le 0 \\
0 \text{, otherwise}
\end{cases}
\\
\dot{\psi} = 2\Sigma x \\
x(0) = x^0 \\
x(T) = 0
\end{cases}
$$
Here $x^0>0$, $T$ is given, $D>0$ is a diagonal matrix, $\Sigma>0$ is a symmetric matrix... |
I have difficulties with this equation
$$\frac{d^2 u}{d x^2} + u^2 - x^2 = 0$$
with boundary conditions: $u(0)=u(1)=0$
I do not know how to solve nonlinear differential equations with Newton's method. If somebody knows could you please explain?
I followed the comments and ı finally reach these two equations (eqn1 and ... |
I have coded up a toy implementation of Conjugate Residual and have been testing it. Both wikipedia and the Saad claim that Conjugate Residual and Conjugate Gradient have similar convergence behavior. For some examples I have been doing I haven't found this to be true. For a $128 \times 128$ symmetric indefinite mat... |
I have a tracker that outputs the trajectory $(x,y,z)$ of an object (e.g., a can).
I want to use these trajectories to train a classifier (i.e., SVM) in order to infer the activity that the person manipulating the object is performing (e.g., drinking from a can or pouring from a can )
Which kind of features should I u... |
I use software for pollutant propagation on rivers that takes as input a set of parameters ($p_1,p_2,\ldots,p_n$) and creates an output file which is basically a matrix where on each row the concentration of the pollutant in various places along the river at a given timestamp is given.
\begin{array} {|r|r|r|r|r...|r|}... |
I'm a computational chemist working with little computational power and dealing with increasingly demanding chemical systems. My work machines are part of a big network (mixed with windows and linux) and I was asking myself: is it possible to "borrow" computational power from machines around me (with permission from my... |
How do you approximate a function for interpolated points? I use the natural cubic spline to interpolate points as follows for n = 500 points:
t=[0; 3; 6; 9]
z=[0; 6; 6; 0]
plot(t,z,'ro')
ti=linspace(0,9,500)
zn = natcubicspline(t,z,ti)
yn = line(ti,zn)
Is there any way approximate a function for these n-many points ... |
The solution space of a nonlinear ordinary differential equation (ODE) often includes a separatrix that is unstable in the sense that nearby solutions depart exponentially from it. The nonlinear Bessel's equation, for instance,
f''[x] + f'[x]/x +f[x](1 – f[x]^2) == 0
has this behavior, with a separatrix satisfying f[... |
I'm trying to learn how to do optimal rocket trajectory planning. I have a process that works but it converges very slowly; I'm looking for help to understand how to speed that up.
The optimal control problem
This is a simplified version of the linear tangent steering problem:
Imagine a point mass (the "rocket") moving... |
I am modelling a 1 dof spring-mass-damper system with friction. As first attempt I modelled the friction according to the simple Coulomb model (figure A here http://article.sapub.org/image/10.5923.j.mechanics.20130301.04_006.gif) and it worked fine.
Now I want to add the effect of the static friction when v = 0 m/s (fi... |
I'm looking for some physical phenomena for which an adaptive time stepping algorithm would be ideal. A PDE or ODE that showed very large gradients in time at a small period of time and smoother gradients for the rest of the still necessary simulation. Thanks.
|
Suppose $A\in\mathbb{R}^{n\times n}$ is symmetric and positive definite and that we have several symmetric matrices $B_i\in\mathbb{R}^{n\times n}$ that are low-rank and indefinite. I need an algorithm for solving the following optimization problem:
$$
\begin{align*}
\min_{x\in\mathbb{R}^n}\ & x^\top Ax\\
\textrm{s.t.}... |
I am trying out a few forms of polynomial expression optimization, and I'd like to improve of what I've got, if anyone has anything they know is better.
Implementation 1:
$$x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}$$
To the best of my knowledge, this has 3 add/subtracts, 21 muls, and 3 divs.
Implementation 2:
$$x(... |
Central schemes like JST uses artificial dissipation for the stabilization. This modification is an artificial one. Does this additional term makes system inconsistent? Can we expect this term to be zero at the end of the simulation? This is in reference with incompressible flow schemes. In the following references the... |
I am trying to implement in Python this ratio:
$\frac{w_t(i)}{\sum w_t(j)}$ where $w_t(i) = w_{t-1}(i)\cdot\exp{(-x_{t}(i))}$, i.e. the weights are exponentially decreasing without running into underflow problems. I am using this ratio in a formula later. Has anyone had the same problem? Any ideas? I read a bit about t... |
I am solving a nonlinear ODE with a regular singularity using MATLAB ODE45 or ODE113.
I am wondering what precision and accuracy they have and what one can say about the numerical error. The idea would be to write a statement like
"The solution was found by means of ODE45 which has an accuracy
of...".
|
We have been developing algorithms for detecting "robust" zeros of multidimensional functions $f: X\to\Bbb R^n$ where $X$ is an $m$-dimensional domain in $\Bbb R^m$. More precisely, for a given $f$, we can compute an $r>0$ such that every continuous $g$, $\|g-f\|<r$ has a nonempty zero set in $X$ (under some quite weak... |
Is there any function to create or change a matrix, to have $A_{ij} = \text{abs}(A_{ij})$ in PETSc? If possible it should work with MPIAIJ matrices, not only local.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.