instruction stringlengths 43 28.1k |
|---|
For the backward Euler discretization in time:
$$
\left( \frac{u^{(k)}-u^{(k-1)}}{\Delta t}, v\right) + a(u^{(k)},v) = \ell(v)
$$
where $a(\cdot,\cdot)$ is the bilinear operator associated with the discretization in space. I’m considering linear elliptic problems in 2D. So I rearrange the above equation:
$$
\left(\frac... |
I'm trying to find the potential given some boundary conditions using the successive over-relaxation method.
I have 2 solutions:
-One iterates over all elements and applies the formula field[y,x] = (1-alpha)*field[y,x] + (field[max(y-1,0),x] + field[min(y+1,field.shape[0]-1),x] + field[y,max(x-1,0)] + field[y,min(x+1,f... |
Recently I have been comparing different non-linear solvers from scipy and was particularly impressed with the Newton-Krylov example in the Scipy Cookbook in which they solve a second order differential equation equation with non-linear reaction term in about 20 lines of code.
I modified the example code to solve the n... |
I am trying (using MATLAB) to generate the following image (from the section 4.1 Numerical Examples) of Wu Tian Chen research article 'Condition-based Maintenance Optimization Using Neural Network-based Health Condition Prediction':
The model is derived from the equation:
$$
L(t)=θ′+β′t+ε(t)
$$
where $θ′$ is a normal ... |
I am attempting to model the steady state behavior of a cylinder using the finite volume method (FVM) subjected to a variety of boundary conditions in Matlab. First off, I am treating the cylinder as being axisymmetric so I am only determine the temperature profile in the r-Z plane. I set up a 2D grid so that the r coo... |
The application is a simple non-linear advection diffusion problem (steady state) using DGFEM. My error at each iteration is given by
$$
e_{n+1} = ||\mathbf{J}^{-1}(\mathbf{u}_{n})\mathbf{F}(\mathbf{u}_{n})||_{L^{2}(\Omega)} = ||\mathbf{u}_{n+1} - \mathbf{u}_{n}||_{L^{2}(\Omega)}
$$
For testing purposes, I'm using an $... |
I want to find a solution for $xA=0$, where $A$ is a square matrix. I know that most of the LAPACK routines solve for $Ax=b$. So I take $A^T$ as a, and set $b=0$. I have an additional restriction of $\Sigma x=1$.Thus, I add an additional row of $ones$ to $A^T$ and a single $one$ to $b$. This also allows to avoid the t... |
I'm trying to learn about numerically solving PDE by myself.
I've been beginning with finite difference method(FDM) for some time because I heard that FDM
is the fundament of numerous numerical methods for PDE. So far I've got some basic understanding for FDM and been able to write codes for some simple PDE lay in regu... |
I'm trying to construct the right–hand side of my 2D Poisson's equation in Matlab. I used the vertex rule in order to approximate the integral:
function F1 = rightVer(p,t,f)
%area triangle
it1=t(1,:);
it2=t(2,:);
it3=t(3,:);
area = ((p(1,it2)-p(1,it1)).*(p(2,it3)-p(2,it1))-(p(1,it3)-p(1,it1)).*(p(2,it2)-p(2,it1)))/2;... |
I am attempting to model the steady state behavior of a cylinder using the finite volume method (FVM) subjected to a variety of boundary conditions in Matlab. First off, I am treating the cylinder as being axisymmetric so I am only determine the temperature profile in the r-Z plane. I set up a 2D grid so that the r coo... |
I'm working on some MATLAB code to perform something called the Index Calculus attack on a given cryptosystem (this involves calculating discrete log values), and I've gotten it all done except for one small thing. I cant figure out (in MATLAB) how to solve a linear system of congruences mod p, where p is not prime. Al... |
Is it computationally safe and accurate to use the following equation in COMSOL to compute the divergence of the vector quantity J (instead of using its general built-in equations that have $\nabla$ operations):
$$div_J = d(J_x,x)+d(J_y,y)+d(J_z,z)$$
|
For a computational representation theory program, I have to calculate the trace of $A^+B$ for a fixed $A$ and many different $B$, where $A^+$ is the pseudoinverse of $A$ ($A,B$ have full column rank and the same image). Currently, I compute the LU decomposition of $A$ and use this to solve $Ax_i=b_i$ for each column $... |
On my triangular mesh, I have the $(x,y,z)$ coordinates of each vertex of each triangle. For higher order elements, I refine each element a few times so I have more points to work with. If I just need to visualize the solution for myself, I use fill3 but I'm not entirely sure how to insert my own colorbar. Ideally, I w... |
I have implemented the 2D heat equation with what I thought was the Crank-Nicolson algorithm in the following way:
function[newDomain] = heatCN(domain, dt, Nx, Ny, hx, hy, spanX, spanY)
aux = domain;
newDomain = domain;
for i=2:Nx-1
for j=2:Ny-1
derX1 = dt * (-2.0 * domain(i,j) + domain(i+1, j) + domain(i-1... |
I'm having a problem with multigrid code I wrote. If I solve Laplace's equation in 2D and use more than 5 grid levels, the V-cycles stop converging after a few cycles (see below, convergence factor > 1). At grid level 3, you can see that the recursive V-cycle actually increases the error (L2 norm of the defect). If I u... |
How can show that the prerequisites for the Lax-Milgram Lemma holds if I have different test and trial spaces (which I think is the natural thing to have if at least part of the boundary is non-homogenously Dirichlet)?
To take a simple example (in my actual case I have a non-homogenous Neumann part as well, but that is... |
I’m attempting to write a C program to gather values from a coupled spring system: There is a wall, connected to a mass $m_1$ by a spring, then this mass is connected to a second mass $m_2$ by another spring.
The values I require are the positions of the two masses and their velocities.
Using initial values for positio... |
What is the best way to impose a "constant constraint" for a PDE? Specifically, I want to solve an eigenvalue problem $Au=\lambda u$ on the rectangle $(0,2\pi)\times(-\pi/2,\pi/2)$ with periodicity constraints horizontally and constant constraint on the lines $y=\pi/2, y=-\pi/2$. Here a constant constraint means that $... |
Is it possible to solve the eigenvalue problem:
$$Ax = \lambda Mx$$
using ARPACK when $A$ and $M$ are both non-symmetric complex matrices? According to this documentation, the function znaupd only works when $M$ is symmetric positive definite. I have verified that the results are only correct when $M$ meets this requir... |
I have the same single thread problem, which is something like a simple
#include<stdlib.h>
#include<iostream>
#include<stdio.h>
#include<time.h>
//#include<ctime.h>
int main(){
clock_t start=clock();
for (int i=0;i<100 000 000; i++){
//do something here
}
double duration = (clock()-start)/(double)CLOCKS_PER_SEC;
cou... |
I have a while loop, in which I use a Matrix A, vectors B and x with varying dimensions:
int count=0;
while(true){
count+=1;
MatrixXd A(count,2*count);
VectorXd B(2*count);
// assignment of A, and B
//
VectorXd x = A.householderQr().solve(B);
// output of x
if (x.norm()>30)
break;
}
However the program built th... |
I am trying to plot the wave function for a particle in a 3D box. This requires me to plot 4 variables: x, y, z axes and the probability density function.
The probability density function is:
abs((np.sin((p*np.pi*X)/a))*(np.sin((q*np.pi*Y)/b))*(np.sin((r*np.pi*Z)/c)))**2
I am using np.arange() for the X, Y and Z.
I ha... |
I am trying to find the Nusselt number for a small element of the outside of a cylinder that has a height of $\Delta z$. I found the average Grashof number of a surface as
$$Gr_{L}=\frac{\beta \rho (T_{s}-T_{\infty})L_{c}^{3} }{\nu^{2}}$$
If I wanted to find $Gr_{x}$ of a certain element, would I use a characteristic ... |
Suppose that I have the following vectors $v_1$, $v_2$, $v_3$ $\in R^n$,$n= 9$. What I want to do exactly is to combine these $3$ vectors into $1$ representative vector $V$.
According to the following article: Document Classification and Page Stream Segmentation for Digital Mailroom Applications
they Perform at fir... |
How can I generate a list of all the variables that have been assigned in an R language session?
|
Is there any tool to plot 3d dimensional histogram in a spatial grid? Preferably are there any filters or operators in Paraview or Visit for this?
|
I heard that subspace iteration plus Ritz acceleration could improve the performance a lot for solving clustered eigenvalues, for the eigenvalues and eigenvectors could converge linearly with ratio $\lambda_{p+1}/\lambda_j$, $j=1,\ldots,p$. For Hermitian Matrix this is even faster.
This is really fantastic. Now for a... |
I would like to compute, as part of the solution of the Laplace equation using the Fast Multipole Method, the second derivative of the associated legendre functions of the first kind .
Specifically, I am looking for C implementations or just the correct recurrence relation to use to write the function myself.
I have tr... |
I have a dense matrix A and its corresponding inverse $A^{-1}$. The Woodbury matrix identity states:
$$ (A + UCV)^{-1} = A^{-1} - A^{-1}U(C^{-1} + VA^{-1}U)^{-1}VA^{-1} $$
I wish to perform small updates to the diagonal of $A$ and compute corresponding $A^{-1}$. The updates can actually be described as a constant $k$ m... |
I'm interested in taking some partial derivatives of a 3 dimensional array in Matlab - say $A(i,j,k)$ approximates $f(x_i,y_j,z_k)$. I need to approximate things like $\partial_{xy}f$, $\partial_{yz}f$, etc. I've already built the finite difference matrices for a few of these derivatives, but ultimately this is going... |
So I am basically trying to solve the simplest case possible for the heat equation:
on the domain [0;1] x [0,1] with boundary conditions 1.5 on one face of the square and 1.0 on all other faces.
I am using octave and I am solving the mathematical system from scratch, for learning purposes. (I know it is inefficient)
T... |
I'm working with error estimates for Poisson's equation of the form
$$\mathcal{E}^2_T = h_T^2\|-\Delta u - f\|_{L^2(T)} + \sum_{e\in \partial T} h_e\|n\cdot \nabla u\|_{L^2(e)}$$
where $T$ is an element and $h_T, h_e$ are representative sizes of the element volume and face, respectively.
For skewed elements, I'm uncl... |
Image attached is where I am at the moment. Blue dots=points/cities, Black x's represent central points in each box that contains at least one city, and pink dots represent the midpoint of these centre points
I am doing a short project using Lab Windows to approximate the minimal path between points on a 2D plane. (Gr... |
I wrote a simple ray tracer, and now I try to implement an uniform grid. There is a lot of documentation on how to traverse the grid, but I don't know how to construct the grid.
I have my uniform grid and my triangles. How could I know, which cell(s) in the grid correspond(s) to my triangles ?
Thanks fo your answers.
|
I have an array of floating point values $F$. I want to input my array into an algorithm that only takes integer values. How can I efficiently determine the smallest multiplier $m$ such that all values in $m \centerdot F$ are integers within a given tolerance $tol$?
|
If I have a psd, symmetric matrix $\mathbf{A}$ and I need to do LU decomps on $\mathbf{B_i}= \mathbf{A} + \mathbf{D_i}$ (where $\mathbf{D_i}$ is a diagonal psd matrix, where $\mathbf{D_i}$ changes randomly). Is there an easy way to go from the LU of $\mathbf{A}$ + some function of $\mathbf{D_i}$ to get the LU of $\math... |
We are working on a Bayesian model for a space-time process, and are using a No-U-Turn sampler (NUTS) that requires a model for the log-probability and it's gradient with respect to the model parameters. More succinctly, we have fairly complicated log-probability function $f : \mathbb{R}^n \rightarrow \mathbb{R}$, inv... |
My long-term goal is to numerically solve the 1D advection-diffusion equation of the form:
$$\frac{\partial u}{\partial t}=\frac{\partial }{\partial x}\left( v(x,t) u+D\frac{\partial u}{\partial x}\right)$$
To start I've set set $v(x)$ instead of $v(x,t)$ and I've been using an implicit finite difference method with va... |
In order to balance atom count in chemical equation:
a O2 + b C12H24O11 → c CO2 + d H2O
I make linear equation:
O: 2*a + 11*b = 2*c + d
C: 12*b = c
H: 24*b = 2*d
and I must find smallest positive non-zero integer that satisfy that question.
In GNU Octave I bit this problem with human interaction:
[2,11,-2,-1; 0,12,-... |
I aim to find $x \in \mathbb{R}^n$ that
$\min_x |D \cdot F \cdot x|^2$
subject to $x_i = X_i$ and $x_j \geq X_j$ ,
$i \in I, j \in J$ and I and J partition ${1\cdots N}$ into two sets.
it is easy to do $D \cdot F \cdot x$ because D is diagonal and F is the discrete Fourier transform. But actually storing and comput... |
Firstly I would like to achieve a final goal as can be found in the links below:
Link 1
Link 2
Now I started doing a little bit of research and found that Stereophotogrammetry is the field I should be looking to study should I want to achieve the desired result in the links above. Now I know there is software like Catc... |
I am looking for a clean way to compute preciseley, when $x$ is very close to zero: $$\exp(-1/x^2)$$ using C. What is the best way (speed, precision, etc.) ?
|
Let $x\in \mathbb{R}^{n}$, $Y\in \mathbb{R}^{mxn}$.
We can then define:
$row_{i}(Y)=$ $i^{th}$ row of $Y$
$column_{i}(Y)=$ $i^{th}$ column of $Y$
$x_{i}=i^{th}$ element of $x$
$sum(x)=$ sum of the element of $x$
$card(x)=$ number of non-zero element of $x$.
My Goal is to devise a method to determine if it is pos... |
I am solving a problem using an iteratively-reweighted least squares method: http://en.wikipedia.org/wiki/Iteratively_reweighted_least_squares
Essentially this requires solving a number of least-squares problems of the form $$D_i A\vec x\approx D_i\vec b,$$ where each $D_i$ is a different diagonal weighting matrix.
Is... |
I am trying to implement a simple finite volume method solver. I had a class on FVM a while back, but am still aware of the principal concepts. But implementing the FVM for non-cartesian or 1D meshes is not straightforward to me.
E.g. I have a mesh representing my control volumes. I compute the cell centroids to be us... |
Matlab ttest "returns a test decision for the null hypothesis that the data in x comes from a normal distribution with mean equal to zero and unknown variance, using the one-sample t-test."
Can anyone clarify what exactly is output by the command ttest when run on a vector of numbers $a_1, a_2, \ldots, a_n$? OK to ans... |
I would like to minimize:
$$J = \int_{\Omega} \|\nabla u - \nabla g\|^2 + \lambda \|\frac{\partial u}{\partial t} + \nabla u.v||^2 ~\text{dx dy dt}$$
where $u(x,y,t)$ is the unknown function, the integral is over a fixed spatio-temporal domain $\Omega$, $\nabla$ is the spatial gradient, $v(x,y,t)$ is a velocity (vector... |
I have my pde 2D problem with robin condition (form: du/dn +ku=g) to solve with matlab. i have the exact function u and I want to find the function g in robin condition. How can i do it?
thanks for the help :)
|
I wrote the code to fix this problem; now I should validate it using a test function to see the error in my code. I can't figure out how starting from u can derive the function g on the edge, in particular I don't manage to compute the outward normal.
This is my code to calculate g: https://dpaste.de/hzYm (p,t,e are ... |
Is there an efficient way to find the largest negative eigenvalue of a matrix? The matrix in question is a Markov matrix.
Computing the full spectrum of the matrix by decomposing it is not an acceptable solution.
|
First off I would like to mention that I am absolutely terrible at statistics... so bear with me please.
The question:
a sha1 hash is a hexadecimal string of 40 characters, the largest number being:
ffffffffffffffffffffffffffffffffffffffff
which if you convert it to a decimal, it becomes around 1.2830013993246E+48.
I ... |
I'm implementing a mass-spring solid mechanics solver and I'd like to use the Velocity-Verlet time integration scheme. However, I cannot find anything about the maximum stable time step -- either saying there is none and it's unconditionally stable like an implicit scheme or that there is one and it's bound by somethin... |
So I'm trying to implement a Gauss-Kronrod adaptive quadrature. That is, I want to calculate
$$\int_a^b f(x) dx = \sum_i f(x_i) w_i$$
where f(x) is evaluated at multiple points at once for efficiency. A key point to bear in mind is that $f$ is also vector-valued (possible risk of confusion here with the double meaning,... |
I'd like to find the normalized ground state wavefunction for the anharmonic oscillator (Duffing) whose potential for which there is no analytic solution; an oscillator with a quartic potential, in addition to the quadratic potential. Any comments would be highly appreciated
$$V(x_{-}) = \frac{x^2}{2}+\lambda \frac{x^4... |
So, I am running this openfoam simulation and I need areaAverage velocity and pressure on a surface,currently the entire plane is being read, I wan't to specify my own in sampleSurfaceDict,
new_plane
{
type faceSource;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
o... |
I am interested in solving a sparse complex linear system Ax=b where A is a square matrix of complex numbers and b is vector of complex numbers.
If possible I would like such a library to be templated (for the ease of installation and use)
sth in the spirit of Eigen
I checked out Eigen but it does not, I think, look ... |
I want to solve Lid driven cavity flow with the help of projection method i want to make own fortran program to solve two dimensional unsteady flow.
I propose to solve the equations in the following way: apply a second order Adam Bashforth method for convection terms and Crank nicloson scheme for viscous term by negl... |
I'm trying to get a deeper understanding of the Finite Element Method (FEM) to better understand what I do in COMSOL and FEniCS.
The sketch below shows the problem that I want to solve in FEM. The rectangular domain resembles a flow reactor. In the flow reactor there is a laminar velocity field in the z direction, $U_Z... |
So I have a 2D histogram, in the third dimention are the counts.
What I want to achieve is by choosing two random position, make a plot of a 1D histogram along the line that passes through the two points.
I also want to be able to change the distance from the line to which points are included in the 1D histogram.
Any i... |
How do CUDA and OpenCL compare to each other as of late 2013 from a programmer's perspective? My group is thinking about trying to make use of GPU computing. Would we be limiting ourself significantly by choosing hardware that only supports OpenCL but not CUDA?
To be a bit more specific, are the following assumptions... |
I am using image filtering for an image processing algorithm I'm developing. I'm using a predefined Matlab function to do the convolution, but I'd like to know what the computational complexity is for this algorithm.
The simple way of thinking of this is that an $M \times N$ (grayscale) image and a $m \times n$ filter,... |
I apologize in advances if this is the wrong place to be asking this question, (I had considered putting it on CV first).
I am studying financial (S&P, Dow Jones, etc) data, and would like to compute some quantiles of an array of numbers. I have been reading about quantiles, so I know what they are, but does the compu... |
For a positive definite symmetric linear system, Cholesky decomposition based method should be the best solver which has a rough n^3/3 flops requirement.
What is the fomula of flops including n^2, n items? Is there any such reference?
|
In a problem I am trying to model with a MIP program, the following scenario occurs:
I am given binary variables $x_1,\ldots,x_n$ and $y_1,\ldots,y_n$ which can really be regarded as $n$-vectors. What I need to compute is the number of bits in which they differ. In particular I just need to make sure they are only equa... |
Is there any analytical (exact, closed-form solution) or numerical method to solve an equation such as
$p(x) = r^x$
where $p(x)$ is a polynomial whose coefficients are drawn from a finite field, and $r$ is a primitive root of the field modulus ?
Or, is this problem known to be equivalent to solving the discrete logari... |
For a second order PDE, for example heat conduction equation
$\frac{\partial T}{\partial t} = \frac{\alpha}{C_p} \nabla^2 T$, is it possible to determine the steady-state (or even transient) solution with two Dirichlet conditions? I have two different questions regarding this
From my understanding, the solution is no... |
Quoting from Solenthaler et. al. Predictive-Corrective Incompressible SPH
(ACM Transactions on Graphics, Vol. 28, No. 3, Article 40, Publication date: August 2009) (PDF link here)
These incompressible SPH (ISPH) methods first integrate the velocity field in time without enforcing incompressibility. Then, either the i... |
I have few particle's position and velocity information as a function of time.
Particle is following a trajectory path, while doing so, one particle may disappear, other particle may appear.
Particle position can be represented as a point and velocity as a vector at that point. If we think of particle position, it is n... |
A common problem in statistics is computing the square root inverse of a symmetric positive definite matrix. What would be the most efficient way of computing this?
I came across some literature (which I haven't read yet), and some incidental R code here, which I will reproduce here for convenience
# function to comput... |
I have a numpy function f that takes arrays as arguments and a 3D array x[a,b,c].
I would like to evaluate the function f along a specific column. A long-winded way could be with comprehensions:
y = [ [ f(x[a][b]) for a in range(len(x)) ] for b in range(len(x[0]))]
y = np.array(y)
Is there a numpy way of doing thi... |
It is known that Numpy basic matrix slicing will generate a view, whereas advanced slicing a copy. Is this true in cvxopt? I tried
from cvxopt import spmatrix
import numpy as np
A = spmatrix([2,-1,2,-2,1,4,3], [1,2,0,2,3,2,0], [0,0,1,1,2,3,4])
A_view = A[0:3,0:3] # basic slicing
A_cp = A[[0,1,2],[0,1,2]] ... |
I know that for general matrices, Cramer's rule is far from ideal for the numerical computation of the matrix inverse. However, can it be outperformed in the case of a $3 \times 3$ matrix? One particular advantage is that the algorithm is non-branching. For example, the transpose of the inverse can be implemented as fo... |
I successfully ran a RANS simulation of industrial fan with all wall BCs,
pimpleDyMFoam solver and spallart-almaras RAS model.
I got results upto some time, I would like to continue that simulation with LES instead of RAS, what are the options how I need to refine the mesh. (one parameter is way off the experimental va... |
I need to determine whether a real dense symmetric matrix is positive definite or not.
One possible way is to obtain all the eigen values and check the sign of the minimum eigen value but requires computing all eigen values which seems unnecessary.
It was said congruent transform should be more efficient to do this.
Do... |
I downloaded the bundle adjustment data from this link:
original data for bundle adjustment
which is the supporting data for a paper titled:
Bundle Adjustment in the Large
I want to use the data for triangulation algorithm testing, which requires 3x4 pinhole camera matrices; however the pinhole cameras were all calibra... |
I need to solve the following problem:
For a given p=(x0,y0,z0,w0) and arbitrary T. For example , let p=(0.8,0.1,0.06,0.04) and T=-1.2. I need to find a vector q=(x,y,z,w) with the minimum distance from p, under the given constraints.
I need a numerical solution, I tried using MATLAB but I had a lot of problems with... |
I'm tryng to learn to use a lapack subroutine but I got stuck. I hope this is the right forum... In this fortran program I'd like as a test to find the Shur form of the matrix ((0,1)(1,0)) using cgees, but the matrix "m" after the call in which the Shur form should be written, is made only of zeros (other subrotunes li... |
I would like to know how to compute the statistics of the discrete Fourier transform of a noise signal. To illustrate what I mean, I will first explain in detail a computation I have managed to do myself.
Suppose we have a discrete time series of values $x_n$ with $n$ from 0 to $N-1$. Each $x_n$ is a random variable, u... |
First some background, I am a mathematician by training with very little formal training in programming. I am most comfortable in MATLAB and have been working with it for a long time. My second choice would be C++. But in either language the longest most complicated code I have written is maybe between a hundred and tw... |
My problem needs to solve dense symmetric linear systems something like:
A x = b,
A y = x,
A z = y+x,...in sequence.
In Eigen C++, if I take advantage of the symmetry of A by using:
x=A.ldlt().solve(b);
y=A.ldlt().solve(x);
z=A.ldlt().solve(y+x);
The same matrix A has to be Cholesky factorized many times.
Similar issu... |
I have a question about matrix diagonalization. I don't know if this is the right forum... Is there a way to compute the smallest real eigenvalue (and eigenvector if possible) of a general real nxn matrix? (with n small say n=5). Is there a routine in fortran 90 that does this? And, more generally, what is the situatio... |
My question is about Finite Element Method.
I want to know how to implement "gradient zero" conditions to advection-diffusion equations in conservative form like,
$\frac{\partial \rho}{\partial t} + \nabla \cdot \mathbf{\Gamma} = 0$
where,
$\mathbf{\Gamma} = \mathbf{u}\rho - k\nabla \rho$
$\mathbf{u}$ and $k$ is not co... |
What library can one use to compute efficiently the lowest eigenvalues of the Laplace operator in a polyhedral domain in $R^3$?
For the application I have in mind one has to consider very acute polyhedra (which moreover are non-convex) so it would probably be necessary to use a smart enough algorithm that can deal well... |
I am using the sparse matrices provided by the University of Florida Sparse Matrix Collection and most matrices are accompanied with little description of the problem or discipline from which the matrix was originated, is there a way to find more about each matrix origins, and how it was generated?
|
Background:
I'm trying to understand the Multiscale Finite Element Method and I'm reading Effendiev & Hou (2009) Multiscale Finite Element Method. Suppose I'm working with a poisson equation of the form \begin{align}-\nabla\cdot(k(x)\nabla u)=f \text{ in }\Omega\\ u=g \text{ in } \partial\Omega_1 \\ k(x)\nabla u\cdot ... |
Does anyone know a good algorithm for quickly finding an approximate solution to the following problem?
Given two square matrices $A$ and $B$, minimize $\| P A P^\top - B \|$ over all permutation matrices $P$.
I have heard that there are several types of algorithms for these kinds of problems, like iterative improvemen... |
perhaps the most idiotic question I ever asked.
people throw around the parameter $y^+$, as if it is the be all and end all of CFD (Computational Fluid Dynamics) parameters and use it as if everyone and their dog know how to calculate it.
(Specially in CFD literature)
Now the question,
$u_\tau = (\tau/\rho)^{1/2}$
whe... |
I would like use Python to verify the following identities:
$ \frac{1}{1-z} = 1 + z + z^2 + z^3 + \dots $
$ \frac{1}{1-z - z^2} = 1 + z + 2z^2 + 3z^3 + \dots $
$ q \prod_{n \geq 1} (1 - q^n)^{24} = q - 24 q^2 + 252 q^3 + \dots$
The last one could be evaluated by checking the poly1d class in numpy.
Python doesn't ... |
This is more of a conceptual question.
I have learned about Neural Nets, and I have some clue as to how Support Vector Machines work. I read somewhere however that given the appropriate kernel (is that right?), the SVM is identical to the Neural Net. Could someone who understands this please enlighten me as to how that... |
Firstly, About the Hierarchical Model And X (HMAX model), i still don't understand what is the difference between the "Original model" and "Standard model". Does in Standard, we use imfilter not conv2 ? is that correct ?
Secondly, i didn't understand the following phrase : "The filters in S1 layer are sum-normalized to... |
In Establishing, versus maintaining, brain function: a neurocomputational model of cortical reorganisation after injury to the immature brain, Varier et al develop a neural network model of motor control and then "lesion" it as it is training. I am new to neural networks and really do not even know where to begin in em... |
I'm studying support vector machines and came across this paper. The following equation doesn't make sense to me, especially the part with the 0 ∀i. Any help understanding the basics of SVMs?
yi * (xi * w + b) - 1 >= 0 ∀i
xi - one input
yi - the classification (+1 or -1)
w and b - variables to find in order to "trai... |
I have a finite series that looks like this:
$f(t) = \sum^n_{i=0} A_i cos(\Theta_i + \omega_i t) + B_i sin(\Theta_i + \omega_i t)$
That is, a finite series of pairs of phasors.
What's the state of the art for numerically calculating the value of the series at a given $t$? I'm interested in numerically finding the root... |
Suppose I have the following 3 by 3 matrix:
p<-3
X<-matrix(1/p,p,p)
--$\pmb X$ is just a $p$ by $p$ matrix where every entry is $1/p$.
Now I want to solve the system
$$\pmb a\pmb X=\pmb 1_p$$
where $\pmb 1_p$ is a vector of 1 of length $p$.
I know $\pmb 1_p$ is the solution to such a system,
but when I do, in R,
solv... |
I want to know the best optimal algoritm of gcd with its complexity if you have a any useful source I will be glad to have a look at it.
|
Let $\vec{x} = (x_1, x_2, \dots, x_n) \in [0,1]^n$ and $f(\vec{x}): [0,1]^n \to \mathbb{C}$ be a function in these variables.
Is there a recursive scheme for this iterated integral?
$$\int_{[0,1]^n} \prod dx_i \;f(\vec{x}) $$
If $n = 10$ and I break $[0,1]$ into 100 segments, we have $10^{20}$ points to add up. The... |
First, an example:
Given an image (2D array) to write down a mathematical notation for the function of pixelation, for example.
Fig. 0: The pixelated version (right) of the given 2D array (left)
What would be a mathematical notation for the above simple function?
The second part:
How about many everyday computing algo... |
I am looking to create an algorithm to minimize an N dimensional problem. I am unsure how to write it in its generic form, so I will show it in 1, 2 and 3 dimensions
Minimize $ \sum_{i} x_i\left [ f\left ( w_i\right )-H \right ], $
Constrained by$ \sum_{I} x_i \left (w_i - R \right) \le 0.01,$
Where
$f\left (w\right)\... |
If a matrix $A_{n\times n}$ is invertible, then
$\left\|A^{-1}\right\|_2 = \dfrac{1}{\min\limits_{i} \sigma_i}$
where $\sigma_i$ is the $i$-th singular value of $A$
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.