instruction stringlengths 43 28.1k |
|---|
I have the following 6x6 matrix (taken from Google Books p. 129):
For background info: All the entries depend on the momentum $k$. Getting the eigenvalues of this matrix for each $k$ corresponds to the electronic energies of electrons for 6 different electronic bands and the eigenvectors are coefficients (lets call th... |
The radius of convergence of any power series can be found by simply using the root test, ratio test etc.
I am confused as to how to find the radius of convergence for an analytic $f$ such as
$f(z)=\frac{4}{(z-1)(z+3)}$.
I can't imagine that I would have to find the power series representation of this, find the clos... |
Consider the function
$$f(\mathbf{x}) = \sum_{n=0}^{N} a_n \left( (\mathbf{b}-\mathbf{x})\cdot \nabla \right)^n \frac{1}{r}$$
where $r = |\mathbf{x}| = \sqrt{(x-x_0)^2 + (y-y_0)^2}$ and $a_n$ and $\mathbf{b}$ are well-known.
Is there any good way to evaluate this function numerically (for fairly large N)?
My problem is... |
I have the following definitions
long = 1000;
init = 500;
N = init+long;
T = init+1:N-1;
T1 = init+2:N;
I then fill the vectors that I want according to this loop,
for t=1:N+1
Rk(t)=1+A(t)*alpha*kh(t).^(alpha-1)-delta;
Yi(t)=A(t)*(1-alpha)*kh(t).^alpha - A(t)*alpha*kh(t... |
I have two time-dependent coupled equations. One of which is several orders of magnitude more computationally demanding than the other. I am trying to use machine learning to reproduce the behavior of the more expensive equation.
equation 1
input: c(t), a(t)
output a(t+dt)
equation 2
input: a(t)
output: c(t+dt)
So e... |
I am currently dealing with the following problem. I am given a matrix $A$ of order $n \times n$ where $n \leq 20.$
The principal $(n-1) \times (n-1)$ matrix of $A$ is symmetric and contains only $\{0,1\}$ as its entries. The $n'$th row and column contains a scaled row sum of this principal sub-matrix. In particular $... |
My question concerns coordinate maps and non-equally spaced fourier transforms.
I have dependent variables $(X(\xi),Y(\xi))$, where $\xi\in(0,2\pi)$. In general, $Y$ is assumed even and expanded as a Fourier series, ie
$$Y(\xi) = \sum_{k=-N}^{N} Y_k e^{-ik\xi},$$
where $N$ is taken to tend towards infinity and the real... |
I am trying to solve ODEs in matlab using ode15s. Instead of specifying ODEs in the format
M * dC/dt = f(C,t) where C is a function of x and t.
I want to use
M * dC/dt = J*C
Since the vector C is very large I am expecting considerable reduction in computation time. I am trying to figure out how to code t... |
I would like to compute the roots of a polynomial with exponentially small coefficients.
$$ \sum_{n=0}^N a_n \frac{z^n}{\sqrt{n!}} \tag{$\ast$}$$
where $a_n$ are Normal random variables with mean $0$ and variance $1$. For simplicity you can just say $a_n \equiv 1$ always.
When the decay is large the coefficients are g... |
I read a master thesis on a topic I'm interested too. This work concern the solution of the displacement equation of motion for a homogeneous, elastic, isotropic material:
$$\rho \ddot{\mathbf{u}} - \mathbf{F} = \mu \nabla^2 \mathbf{u} + (\lambda + \mu) \mathrm{grad} \; \mathrm{div} \; \mathbf{u}$$
where $\mathrm{u}$ i... |
I am working on creating a program for simulations where three variables are parametrized, and we modify one parameter while keeping the other two constant. An example array looks like this when outputted by MatLab:
dim3arr(:,:,1) =
0.8000 0.9000 1.0000 1.1000 1.2000
0 0 0 ... |
I want to set up a surface charge boundary condition for the simulation of semiconductor and electrolyte interface.
The 2D-Poisson example and surface charge boundary condition are shown in following picture.
And then I substitute the 2nd part of LHS with boundary condition.
The final results are shown in figure 3.
... |
I am using FORTRAN to implement Gillespie's stochastic simulation algorithm. I would be running many simulations in parallel (both parallel instances with different seed and parallel functions); if I have to store every time interval then a lot of memory would be consumed. So I thought I can have some fixed number of t... |
It seems that scipy.minimize can find the minimum of an unbounded function.
>>> import numpy as np
>>> from scipy.optimize import minimize
>>> def fun(y):
... return y
...
>>> res = minimize(fun, np.array([0.0]), method='SLSQP')
>>> res
status: 0
success: True
njev: 14
nfev: 42
fun: array([ -3.051... |
I am running some scientific (parallel) code and would like to obtain some performance profiling measurements. I want to obtain the "efficiency" of the code in terms of flops/s over theoretical (peak) performance.
I ran a simple matrix multiplication example (PAPI_flops.c which can be found on the web) and got the meas... |
In work I am currently working on I need to mesh some structure with equilateral triangles to study it using a kind of discrete element method known as spring networks or Lattice model.
To mesh the structure, first I generate the equilateral triangular grid then I do the intersection between the structure and the grid.... |
It is necessary for me to solve a Poisson problem with a numerical method on a square domain with two types of triangular mesh: uniform triangular mesh (using uniform distribution nodes on square) and nonuniform triangular mesh using pdetool in MATLAB.
The first one leads to a banded matrix and the second one leads to ... |
I am working on a problem that requires an iterative procedure to solve a linear system of equations, the system of equations in matrix form is:
$$\underbrace{\begin{bmatrix}
r_{11} & r_{12} & r_{13} & \cdots & r_{1j} \\
r_{21} & r_{22} & r_{23} & \cdots & r_{2j} \\
r_{31} & r_{32} & r_{33} & \cdots & r_{3j} \\
\vdots ... |
I have an application where I want to have 3 different machines writing to their own independent HDF5 files at a high rate, but have a way to read data from them externally and combine it. Is HDF5 a good way to do that or should I look into another format?
My main purpose is I have 3 independent packet capturing boxes ... |
I want to solve for $n_{0}$ for a fixed value of $n$, lets say $n=1$
$$ n= n_{0}+ \dfrac{1}{2}\int_{-1/2}^{1/2}dq\left(\dfrac{e_{q}+Un_{0}}{\hbar\omega}-1\right) $$
where $e_{q}=2[1-cos(2\pi q)] $ and $\hbar\omega=(e_{q}^{2}+2Un_{0}e_{q})^{1/2} $
Then I want to plot between $U$ and $n_{0}$. The following is the code... |
I have a couple of conceptual questions regarding the calculation of phonon dispersions. I wish to calculate the phonon dispersion of Nickel with my lattice vectors given by [111], [1-10] and [11-2] (though my lattice vectors are non-orthogonal to minimize the number of atoms. My lattice vectors are 2.48901587 0 0, 1.2... |
As we know, in the interior point methods, all the iterates have to be strictly feasible. I implemented an affine scaling interior point for nonlinear objective functions. For small examples (2D), it works as expected. However, for large examples (e.g. optimal control problems), after a finite number of steps, some ele... |
For fitting a response surface model to a physical process, I have 3-4 relevant "signals", like a feature density, a signal based on a feature width, or a signal based on a distance to the next feature.
The purpose of the surface model is to capture (=fit) the effect of inter-dependencies between the different signals ... |
I know of several ways to calculated the eigen states of 1D potentials (i.e. DVR, Crank–Nicolson, etc). However I wonder what is the most efficient way to do the same for a N-Dimensional potential? How would this change if the potential has some kind of symmetry ?
|
I am working on a simple explicit-integration lumped-mass elastic FEM code which implements CST+DKT triangles (plate+shell) and constant-strain tetrahedra (http://woodem.eu/doc/theory/membrane-element.html, http://woodem.eu/doc/theory/tet4-element.html). The code focuses on contact dynamics, so FEM is there only to mod... |
I am not sure if this is the correct forum for this question but here it goes. If this is not the correct forum please direct me to the appropriate forum.
I wish to add some periodic noise to a 1-D signal in Matlab. I have to create the noise myself. Now my issues is of the frequency and the sample size of the noise.
... |
I am going to start my first year of a research-oriented master program on inverse problem.
From what I know, unlike pure math students, applied math students usually don't spend the first year reading certain textbook (such that Evans' PDE book). Instead, applied math students start by reading certain papers, and if ... |
Here, SSPRK3 refers to third order strong stability preserving Runge-Kutta and RK3 refres to regular third order Runge-Kutta method. The meaning of the method is obvious from the name. However there is a restriction while one is choosing the time step. It is mentioned in "Strong stability preserving high-order time dis... |
Maybe, this is a dump question. But anyway.
I developed a finite difference code for a class of problems in dynamo theory. I used GNU Octave (MATLAB) which is good for testing. The problem size scales quadratic. Hence, the number of unknown becomes relatively large.
I am considering to rewrite my program in a different... |
I am working on computing a challenging integral. I am working with someone else who wrote some code in Mathematica to compute it. I do not have mathematica so I am trying to do the same thing in C++. The problem is, he uses Mathematica's NIntegrate function which I cannot figure out how to re-write.
How can I re-write... |
How can I generate arbitrarily high quality $1/f$ noise, for use in a model?
My model involves a lot of feedback, over a large number of iterations, with a very high bandwidth, so I'd like the $1/f$ noise to be as "ideal" as possible.
Assuming there's not an ideal solution, it would be nice to have an approach that all... |
Consider the integral
$$2\pi T = -\frac{1}{2} \int_0^{2\pi} A\frac{\partial B}{\partial \xi} \ d\xi$$
where $$A= \sum_{-N}^N i \ sign(n) \ B_n e^{-in\xi}; \quad \quad B= \sum_{-N}^N \ B_n e^{-in\xi}.$$ These expansions imply
$$2\pi T = \sum |k|B_kB_{-k}$$.
Furthermore,
$$B_k = \frac{i}{k}\left(-\dot{Y}_k + \sum_{l+j... |
Iam basically trying to fit a curve similar to that shown in fig (a) with 7 straight line segments (ie. 6 knots) as shown in fig (b) and I need to get the optimum knot positions. This is a tripartite plot in which there are 4 axes (vertical , one inclined at 45 degrees with horizontal, other inclined at 135 degrees wit... |
I wish to create a FEM mesh to solve an inverse elasticity problem, for an irregular domain. This domain is given by a medical image, so it is discretised and each square on the grid has one scalar value.
I assume the discretized and band-limited nature of the domain can inform my choice of FEM mesh, but have not seen ... |
I am trying to animate a dampened pendulum using RK4 for a highschool project.
The equations that describe the dampened system are as follows:
(from http://www.maths.tcd.ie/~smurray/Pendulumwriteup.pdf)
$$\begin{aligned}
\frac{d\theta}{dt}&=\omega,\\
\frac{d\omega}{dt}&=-\beta^2\sin\theta-k\omega+A\cos\Omega.
\end{al... |
So I implemented the projection method as in Chorin (1969) for the solution of the Navier-Stokes Equations with the Boussinesq Approximation, using a 2nd Order accurate FD scheme. The primitive variables are arranged using a MAC scheme. Basically, what I want is to be able to generate a file (or files) to see the solut... |
Recently I tried to compare results for 1D direct convolution and convolution via FFT. I expected to get absolutely the same result, however I faced with a problem that results are different, especially near the left boundary.
FFT convolution should be normalized, however it doesn't change the difference near the lef... |
I tried asking a similar question in SE.Physics, and I got some information regarding the abstract side of this, but I figured I should post here to get more complete information about the numerical benefits of variational formalisms.
Assuming I am able derive a functional representation for any dynamical system (dissi... |
I'd like to solve some PDEs on manifolds, say for example an elliptic equation on a sphere.
Where do I start? I'd like to find something that use preexisting code/libraries in 2d , nothing so fancy (for the moment)
Added Later : Articles and reports are welcome.
|
is it legal here to ask this problem?
I need someone help.
I run mcnpx. I try to calculate f4:n using nps:1000. But, it stop directly before culculate f4. There is comment: stack trace terminated abnormally. And there is warning: cross-section file xsdir and bertin does not exist.
Anyone can help what the problem in ... |
I am solving an unconstrained convex optimization problem, which can easily have a million variables. I am trying to get a working system with a toy problem of around 200 variables. I am noticing that the Newton steps are becoming of very small magnitude, even though the gradient is still not as close to zero as desire... |
I'm getting confused about implementing the Gonzalez algorithm for k-center clustering.
The algorithm is :
let $S$ be a data set
Choose $z_1 \in S$ arbitrarily. Number $z$ is center. (In general let $Z_i = \{z_1, \dots, z_i\}$).
for i = 2 to k do
Set $z_i = \operatorname{argmax}_{x\in S} d(x, \phi (Z_{i−1})(x))$ ... |
Has there been an attempt to "explain" Jupiter's Red Spot via
what is known as the standard map
in chaos theory?
I cannot be the first to notice the visual similarities...
Orbits of the Standard Map
$(x, y) \to (x + y, y - 0.971635 \sin (2px)/2p)$.
Image from this link.
Jupiter's R... |
How can I replace the Euler method by Runge-Kutta 4th order to determine the free fall motion in not constant gravitional magnitude (eg. free fall from 10 000 km above ground)?
So far I wrote simple integration by Euler method:
while()
{
v += getMagnitude(x) * dt;
x += v * dt;
time += dt;
}
x variable mean... |
I need a little help and advice with a project I want to do: the idea is to "couple" (I don't know whether I can call it like this) a conservative Navier-Stokes Solver (Fractional-step, 2nd order FDM) with itself. Roughtly speaking, I would like to split the domain in halves so to be able to solve one fluid on one side... |
I recently have been assigned a project to calculate the roots of a cubic polynomial. However, the issue is that the roots could be very big, but also extremely small. I've been trying to use bisection method to find the first root, and thus I start from +/- realmax.
The problem I'm having is using Matlab's realmax. I'... |
I was told that the fast Chebyshev transform has superior spectral convergence, but I am unable to verify its rumored convergence. I was given plots of its spectral convergence, where the signal's 40th Chebyshev coefficient shrinks to $10^{-16}$ from its largest. The signal was a Gaussian sampled evenly distributed 64 ... |
I am attempting to work through a very simple problem.
Determine the Fourier series expansion for the following heat PDE problem with ICS and BCS:
$$ u_{t} = \alpha^2u_{xx}$$
$$ u(0, t) = u(L, t) = 0$$
$$ u(x, 0) = \begin{cases} 0 & 0 \leq x \leq L/2 \\ 1 & L/2 < x \leq L\end{cases}$$
Given the form of the boundary c... |
I want to compute the derivative of a generalized eigenvalue $\lambda$ which is solution of $A u = \lambda Bu$ ($A,B,u,\lambda$ all depend on $t$; in my case $A,B$ are known explicitly, and the eigenvalue $\lambda$ and its corresponding eigenvector $u$ can be immediately computed using eigs).
If I write formally the d... |
I want to optimize the vertex positions in a mesh, with a given cost function on the associated triangles. The paper gives a cost function, which evaluates to an real number by using a sum over the triangles in the mesh, which connect the vertices to a valid simplical complex. They suggest to use a L-BFGS solver and i ... |
I experimented with the PageRank algorithm. When the number of pages is large, I encountered a situation when one formula for re-normalizing a vector (so that sum of its components is equal to 1; elements of the vector are guaranteed to be positive) works fine, while another stops working and using it causes that the i... |
In general, do iterative solvers require more floating point operations than the direct solver counterparts? I have some scientific code (written in both PETSc and FEniCS) for solving a mixed FE poisson equation and the profiling summaries seem to always show the direct solvers (eg, mumps, superlu) utilizing less flops... |
I need a solver of stiff Inital-Value Problems (IVP) in python exploiting RK4 preferably explicit. I have been searching for past few days but could not find it. Following are my queries:
Does the solver, i.e. any module, exist?
If no, will it be reasonable to code one? I am asking this because I can't find any refere... |
Let $n_1,n_2 \in \mathbb{N}$ and $n=n_1n_2$ and $b\in \mathbb{R}^n$. I have a SPD-matrix $A=(a_{i,j})\in \mathbb{R}^{n \times n}$ with $a_{i,j}=0$ if $|i-j| \notin \{0,1,n_1\}$. Can we solve the system $Ax=b$ in time $\mathcal{O}(n)$? I work with Matlab. The Backslash operator does not seem to scale linearly in $n$. Wh... |
It was said in a comment that I should recude integration tolerance to eps. https://scicomp.stackexchange.com/questions/18929/what-does-this-matlab-error-message-mean I read the manual and I still don't know how to do it. Can you please tell me how to reduce integration tolerance in matlab?
|
I am trying to solve shallow water equations using DG methods. Flow over a bump is a common problem that comes up in this context. For example (http://loki.udc.es/info/asignaturas/calculo_ii/Finite%20Volumes%20IMWE.pdf, page 46). These are my questions:
The boundary conditions are mentioned only for the upstream disch... |
Given the functional:
$$
F[\mathbf{x}]=\frac{1}{2}[\mathbf{x}^{\text{T}} * D(\mathbf{x})]-\frac{1}{2}[\mathbf{x}^{\text{T}} * \mathbf{Ax}]-\frac{1}{2}\mathbf{x}^{\text{T}}(0)\mathbf{x}(t)
$$
Where $\mathbf{A}$ is symmetric, $\mathbf{x}(0)$ being the initial condition, $\mathbf{x}(t)$ is continuous, and:
$$
[\mathbf{f... |
I'm not a huge programmer, but if it'll save me lots of time, that's when I code (given that it's possible).
I know MATLab has a Computer Vision Toolbox, so my question is: is it possible to program MATLab to find a picture within a video, without actually playing the video?
I have hundreds of 2 hour videos of particip... |
Is there any algorithm that can learn/search efficiently the best sequence of 1's and 0's of length $n$ to fulfill certain performance? The search is performed in a high-dimensional binary data space. This means that the search space is of $2^n$ where $n$ usually is in the order of hundreds. I know that Discrete Partic... |
I know what vectorizing is, and I know what pipelining is. I assume "vector pipelining" might mean vectorizing in such a way that vector instructions can be pipelined. Is this a new or coming feature in modern architectures with a more specific meaning?
Update on March 5
I consider this one pretty well-answered. I i... |
The step size is computed by solving
$$
(A + \mu I) h = -g
$$
I could find in some literature that one can compute the step size by solving
$$
(A + \mu \operatorname{diag}(A) ) h = -g
$$
It is said that this is helpful for error valley problems, where the error surface at minima is flat and long. I am not able to decid... |
Just speaking from my experience in c++ - Its really tricky to take advantage of the SIMD capabilities of modern CPU's for more complex algorithms. If I see an opportunity from a high level OO perspective, I would then have to break the whole thing down to a very non-OO kind of code, babysitting every register individu... |
I am trying to solve a multiphysic problem using finite elements and a Newton Raphson solution scheme. I have two non-linear subsystems that are coupled bi-directionally.
The first subsystem includes an equation that I solve for $p_f$:
$\nabla u - \nabla a^3 \nabla p_f = \nabla a^3 B$
This equation becomes very non-li... |
I am trying to integrate a 2nd order ODE with potential several singularities using the lsoda solver wrapped in scipy.integrate.ode().
I would like to put an error bar on the solution or at least estimate of upper bound to the error.
For understand how to calculate truncation errors for simple finite difference methods... |
I am trying to make a speech synthesizer using a Hidden Markov Model. I read the wikipedia page and several whitepapers and presentations (such as this one) but I am still not sure how this algorithm can be used to generate waveforms. Can someone explain to me how the algorithm can be applied to this problem?
|
The problem that I'm trying to solve is as follows.
A server has at its disposal a pool of video encoders (each encoder has different settings and causes a different load on the server) that can be enabled or disabled. All clients need to be connected to exactly one of those encoders, but one encoder can accomodate mu... |
I am solving the following matrix equation for $\mathbf{x}$:
$$(J^{\mathbf{T}}J)\mathbf{x}=J^{\mathbf{T}}\mathbf{r}$$
$J$ is $m\times n$ matrix
$\mathbf{x}$ is vector of size $n$
$\mathbf{r}$ is vector of size $m$
Furthermore, $m\gg n$.
It is sometimes the case that $n$ is quite large (e.g. 1000) and $J$ contains val... |
I have a rather specific question regarding the condition number. I run FEM simulations which have multiple length scales to them which results in a huge disparity between the largest entries and the smallest entries in my matrix. The condition number can get as high as 10^15 in some circumstances.
In numerical analys... |
I'm looking at your standard definition of the TSP.... (see wikipedia).... and in the statement leading up to the definition, it states that we must return to the city we began from.
Which constraint makes sure that this is the case?
http://en.wikipedia.org/wiki/Travelling_salesman_problem#Integer_linear_programming_... |
Problem:
I have translated Jacobian-Free Newton-Krylov solver written by
C. T. Kelley to Fortran and now want to parallelize it on a shared-memory system with OpenMP. In addition, I want to precondition the system with ILU0 or ILUT preconditioners.
Considered solution:
I want to use FGMRES from Intel MKL library - I ex... |
I have to numerically solve a nonlinear partial integro-differential equation. This is my equation,
$$\frac{\partial y(x,t)}{\partial t}=\int_{-1/2}^{1/2} \frac{\pi\cos u}{\sin\pi u-\sin\pi x} \frac{\partial y(u,t)}{\partial u}\mathrm du-\sin\,y(x,t)$$
The kernel has a singularity at $x=u$ and vanishes at the boundarie... |
I edited my question trying to make it as short and precise.
I am developing a prototype of a facial recognition system for my Graduation Project. I use Eigenface and my main source is the document Turk and Pentland. It is available here: http://www.face-rec.org/algorithms/PCA/jcn.pdf.
My doubts focus on step 4 and 5.
... |
It is known from Geometry that any 3 points determine a circle. This is the problem of Appolonius
Programming solutions try to approximate using Bezier curves. Can you not draw conics as Bezier curves? I thought you could get an exact answer using enough control points.
https://stackoverflow.com/questions/2822969... |
Suppose a program was written in two distinct languages, let them be language X and language Y, if their compilers generate the same byte code, why I should use language X instead of the language Y? What would make a language better than the other to resolve a problem? What defines than one language is faster than othe... |
From the deal.II FAQ :
...quadrilaterals and hexahedra typically provide a significantly better
approximation quality than triangular meshes with the same number of
degrees of freedom; you therefore get more accurate solutions for the
same amount of work...
How can this point be made more precise?
|
For a very large mixed-poisson problem with lowest order Raviart-Thomas elements (RT0), I plan on using an iterative solver. However, this kind of problem is not positive-definite (saddle point problem IIRC), thus standard preconditioners (like jacobi) will not converge well for large-problems.
I was told that the alge... |
I’m trying to evaluate an improper integral of a 0th order Bessel function of the first kind using Matlab:
v = integral(@(x)besselj(0, x), 0, Inf)
which returns v = 3.7573e+09. However, this should be 1, in theory. What should I do to get 1 in the Matlab?
|
I am trying to figure out why my sparse (CRS) Gauss Seidel solver is so slow. I tried to find an implementation of the Gauss Seidel method in sparse format online but could only find implementations using dense matrices. Here is my code:
void gs(int r[], int c[], double v[], double x[], int n, double tol)
{
//x is in... |
I have a bunch of comments from my website that I want to use to build a profile of someone's personality based on the topics they chose to write in and the their specific comments.
I know that this entails natural language processing but I have no idea where to start. I am a python enthusiast so prefer the library be... |
NOTE: I asked this on Mathematics Stack Exchange and there were no answers. So, I thought I might try here.
Upwind schemes like the classic "upstream" scheme, can be used to solve, for example, the advection equation:
$$
\dfrac{\partial \psi}{\partial t} + \dfrac{\partial }{\partial x}(u\psi) = 0 \qquad (1)
$$
and this... |
I would like to solve 3 differential equations for 3 unknowns. So I wrote a MATLAB code, which solves (using the '\' operator) these equation using a linear system of equations (in which the 3 equations are coupled). So the linear system has a size of (ny*nx*3,ny*nx*3) [nx/ny are the # of nodes in x/y - direction]. I ... |
Consider a $2\times 2$ block matrix and a linear system of equations associated to it:
\begin{equation}
\begin{pmatrix} - A & B \\ B^t & C \end{pmatrix}
\begin{pmatrix} x \\ y \end{pmatrix}
=
\begin{pmatrix} \phi \\ \psi \end{pmatrix}
\end{equation}
Assume that $A$ and $C$ are symmetric, and symmetric positive semi... |
I start a study the best way to mount a HPC.
On my datacenter i have to initial tests 3 servers whit this settings.
DELL PowerEdge R720
2 x Intel Xeon E5-2680v2 2.8GHz
10 x 16GB RDIMM
XenServer 6.5
I have more at ease with CentOS. So the first question is what is the most stable CentOS for HPC?
The plane for this HPC... |
I'm using the Metropolis algorithm for 2D up to 5D for the Ising Model and I want to compute the spin-spin correlation function.
$$c(r)=<s_is_r>−〈s_i〉〈s_r 〉$$ but I'm not sure how to estimate
$$<s_is_r> = \frac{1}{N}\sum s_is_r$$
What can I do for $s_is_r$ numerically?
|
What is the preferred and efficient approach for interpolating multidimensional data?
Things I'm worried about:
performance and memory for construction, single/batch evaluation
handling dimensions from 1 to 6
linear or higher-order
ability to obtain gradients (if not linear)
regular vs scattered grid
using as Interpol... |
I have matrices that are extremely easy to compute pointwise, but are too large to store. (they are not sparse)
On the MATLAB site I was told MATLAB doesnt support computations with non-stored matrices.
Is their any other software package out there that does?
|
I am new to OpenFoam. And I am trying to add a set (user defined) of differential equations to OpenFoam.
I want to solve this user defined set of equations at each time point in addition to standard fluid dynamic equations.
Theoretically,
SET-1 is ODE/PDE's associated with fluid dynamics (equations already there in o... |
I want to solve the Laplace Equation with pure Neumann B.C. using Finite Element Method:
$- \Delta u = f \ $ in $ \ \Omega $
$- \partial u/\partial n = g \ $ on $ \ \Gamma = \partial \Omega$
With weak formulation
$\int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v \ f + \int_{\partial \Omega} v \ g $.
To obtai... |
What does "Desired error not necessarily achieved due to precision loss" mean in the context of the scipy_fmin methods? I can't seem to find an explanation anywhere.
Here is my code:
import math
import numpy
import random
import scipy.optimize as opt
import matplotlib.pyplot as plt
from numpy import array
from numpy im... |
What I specifically mean is, given some functional $F\left[\mathbf{x}\right]$ which is stationary with respect to $\dot{\mathbf{x}}=f(\mathbf{x})$ and some boundary or initial conditions, can one choose:
$$
\mathbf{x}(t)=\mathbf{x}_0+\mathbf{x}_1t+\mathbf{x}_2t^2+\dots
$$
And substitute this into the functional (or it'... |
Hessian free iterative optimization techniques like Newton-CG, do not explicitly compute the Hessian but instead approximate the product of the Hessian with a vector through finite difference. The approximation error is $\mathcal{O}(\varepsilon)$, where $\varepsilon$ is the parameter in the finite difference calculatio... |
Particle mesh Ewald method for acceleration of solving pairwise interaction by long range forces (electrostatic, gravitational ... ) seem to be very general and easy to implement. The basic principle is well described in many sources.
What is harder to find is how exactly split the potential kernel ( say $V(r)=1/r = V... |
I was working in my project when I was struck by the question of whether it would be necessary, or at least cautious, prevent overflow and underflow in the calculation of these two distances.
I remembered that there is an implementation of the calculation of the hypotenuse to prevent this. Most languages implementers... |
I am trying to understand 1D $L^2$-projections using quadratic basis functions. Using 3 data points, and the Lagrange polynomial it is easy enough to see how to write out 3 basis functions. With the hat functions from the linear basis, it is easy to see how to expand a function. The hat functions are like delta-functio... |
Is there a free C or C++ library including a routine for the eigenvalues of a general complex matrix? I checked a number of linear algebra packages like Eigen, but there does not seem to be support for complex matrices.
|
I have a complex, non-Hermitian matrix $\mathbf{A}$, for which I need to find a few eigenvalues and eigenvectors in the generalised eigenvalue problem:
$$\mathbf{A}\cdot \mathbf{x} = \lambda \mathbf{B} \cdot \mathbf{x},$$
with real symmetric positive definite matrix $\mathbf{B}$. I am currently using scipy.sparse.linal... |
I need to solve a Reaction-Diffusion using Finite Elements, piecewise linear elements. In this problem, a reaction $A \rightarrow B$, with rate law $ r_A = - k_A \cdot u_A $, takes part, where $u_i$ denotes concentration. Initially, $u_A = u_B = 0$. The time dependent formulation for the conservation of $A$ and $B$ is:... |
I'm trying to solve this particular equation
$\frac{\partial u}{\partial t} = \frac{\partial}{\partial x} \big[D_{i}(x)\frac{\partial u}{\partial x} \big] + S(x,t)$
where the $i$ index denotes different layers. Let's say that $ i \in \{1,2,3\}$.
The interface conditions are:
$-D_1(x)\frac{\partial u}{\partial x}\bigg|_... |
I have a small system of stiff ODEs describing a chemical reaction. The right-hand side is quite complicated, as well as the Jacobian. This equation will be solved many times with different initial conditions. Given that I've already selected a stiffness-oriented method, is it realystic to create more effective code th... |
One typically computes Julia sets by iterating a complex function, such as a polynomial or rational function.
How do rounding errors affect the results?
I'm looking for references on this issue, especially but not exclusively for the escape time method.
The only ones I have found so far are:
"The [inverse iteration] m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.