instruction stringlengths 43 28.1k |
|---|
I would like to numerically solve an equation of a type as shown below. Does anyone of you have an idea how to approach such a problem? Any links to literature or for further reading would be greatly appreciated.
Thank you!
I search a function $f(\vec{x})$ with $f \in \mathbb{R}$ and $\vec{x} \in \mathbb{R}^n$, where ... |
I am trying to compute $x^2$ where $x$ is a double precision floating point number. I need conservative rounding, which means I need $x \cdot x$ rounded up and $x \cdot x$ rounded down. If the rounding mode is set to FE_UPWARDS, the code is
double lo = -(x * -x);
double hi = x * x;
However, this does not work for m... |
Given a plane in 3D Euclidean space is $\pi$: $ax+by+cz+d=0$
and a point $P$:$(X,Y,Z)\in \mathbb{R}^3$.
Find a point $Q:(X^*,Y^*,Z^*)\in \pi$ such that:
$$Q= \arg\min\limits_{Q^*\in\pi}\left\|P-Q\right\|$$
Is it difficult to find the closed form solution to $Q$?
|
I had a general query related to calculation of stiffness ratio evolution for a set of coupled odes over a certain time interval. My question is, while calculating the eigen values from the jacobian matrix do we need to know the exact solution at the different time points or can we use solutions approximated by an inte... |
In times of parallel computing, it seems to me that algorithms (also basic ones, like matrix-vector multiplication) should be measured by their dependent steps (that use results from steps before) rather than in total number of Floating Point Operations.
For example, disregarding memory access, matrix-vector multiplica... |
I'm going to ask some beginners' questions.
Adaptive mesh can save many DOFs than a uniform mesh. But it also needs to solve linear systems changing with mesh adaptive process. Is this not problem?
Now suppose we are going to solve the problem a lot of times with different multiple source/boundary/initial data. What t... |
I'm in the middle of installing GPAW on a cluster but I'm running into problems building the "gpaw-python" interpreter, its job is to allow users to execute parallelised GPAW calculations. Following the Developer Installation guide here, I've downloaded the most recent stable package and got it working fully on my loca... |
I am trying to solve the following set of equations using a finite-difference approach and an iterative solver (Gauss-Seidel).
Continuity Equation:
$\frac{\partial V_x}{\partial x} + \frac{\partial V_y}{\partial y} = 0$
Simplified Stokes-Equation:
$ \eta (\frac{\partial^2 V_x}{\partial x^2} + \frac{\partial^2 V_x}{\pa... |
I am trying to solve a system of coupled ODEs:
$$
\begin{align}
\frac{dn_A}{dt} & = e\left[j(t) - f\, θ_H\sinh\left(\frac{g\,n_A}{T}\right)\right] \\
\frac{dθ_H}{dt} & = a\left[bP\,(1 - θ_H )^2 - c~(θ_H)^2 - f\,θ_H\,\sinh\left(\frac{g\,n_A}{T}\right)\right] \\
\frac{dP}{dt} & =h(i - P) + d\,T\,(P-P_a)\lef... |
Given a triangular plane formed by three points in R3 space {p1, p2, p3}, I want to iterate through all points on the triangle plane by using two variables, x0,y0, something like in this example: http://demonstrations.wolfram.com/DirectionalDerivativesIn3D/ The example in that website uses directional derivatives.
If ... |
Brief explanation of QM geometry optimization
Quantum mechanics packages are often tasked with optimizing a chemical structure. The problem is essentially this: Given a set of points in 3D space and potentials that are strongly correlated with chemical structure (bond lengths, bond angles, torsion angles), minimize the... |
I want to understand how the RATTLE algorithm works.
Can somebody give me an example (in pseudocode or using any programming language like python or matlab) of how would I implement a numerical integrator for the simple pendulum problem?
|
I have an array of 2D points and a known curve geometry (it consists of a straight line segment and a circle segment). The points might rotate slightly and are somewhat noisy. I need to find points in array, which correspond to that curve. I have a feeling, that it should be a pretty common task in image processing, wh... |
I am trying to understand why the amplitude of the FFT (computed with numpy) of a Gaussian differs from its analytic solution.
The $\mathcal{F}\{e^{-\pi t^2}\} = e^{-\pi f^2}$. However if I calculate it with
the FFT function in numpy the resulting Gaussian's amplitude is not 1?
I have already done the following:
I do ... |
In stepwise regression, you step predictor by predictor, each time selecting the one with the greatest correlation with the measurement, subtracting greedily to leave a residual with no correlation to any of the previous predictors.
Why go stepwise? Why not just pick the predictors with best correlation to the measurem... |
I need a hand with the numerical evaluation, in Mathematica, for this integral:
$$f(t)=\int_{-\infty}^\infty Exp\{it(\omega_H-\omega_l-\omega_k) - \sum _{j\neq(l,k)} S_j [1-e^{-it\omega_j}]\}\, dt$$
This is the plot of the real and imaginary part:
And this are the values for the parameters of $f(t)$ employed in the gr... |
I have the following LP problem:
$$
\min \limits_{\varepsilon, x_{1}, \ldots, x_{n}}f(\varepsilon, x_{1}, \ldots, x_{n}) = \varepsilon \;\;\;\;\; \mathrm{s.t.} \;\;C x \geq 0, \;\; x_{i}^{0} - \varepsilon \leq x_{i} \leq x_{i}^{0} + \varepsilon
$$
where $C$ is $m \times n$ matrix, and $x$ and $x^{0}$ are vectors of dim... |
I'm teaching myself this regression stuff, so forgive me if this is a basic question. I can't seem to find a discussion of my particular problem.
So I'm least-squares-ing this overdetermined system $\textbf{Ax}=\textbf{b}$, and I'm interested in minimizing $||\textbf{x}||_1$.
Problem is, my $\textbf{A}^T\textbf{A}$ is ... |
I'm attempting to implement the Weiss and Smith preconditioner in an existing finite volume code and I am struggling with the idea of dual time stepping. My inner time steps are predictor-corrector, second order explicit with local time step acceleration. The time step is based on the stable CFL number based on the con... |
When one want to compute numerical derivatives, the method presented by Bengt Fornberg here (and reported here) is very convenient (both precise and simple to implement). As the original paper date from 1988, I would like to know whether there is a better alternative today (as (or almost as) simple and more precise) ? ... |
To compute the evolution of a free surface between two incompressible, immiscible liquids, two tightly coupled equations have to be solved, the volume fraction advection and the Navier-Stokes equations:
$$\frac{\partial\alpha}{\partial t}=\nabla \cdot (U\alpha)$$
$$\frac{\partial \rho U}{\partial t} + \nabla \cdot (\rh... |
In Jacobi method's Wikipedia article there's a section that describes Weighted Jacobi method: http://en.wikipedia.org/wiki/Jacobi_method#Weighted_Jacobi_method.
I need to implement the Weighted version of Gauss-Seidel but I can't find any references of the algorithm.
Can you provide some information about it?
|
I am trying to solve the 2D convection-diffusion equation, which in non-dimensional variables can be expressed for my problem as:
$\frac{\partial c}{\partial t} = \lambda^2\frac{\partial^2c}{\partial x^2} + \frac{\partial^2c}{\partial y^2} - 6\, Pe\, y (1 - y)\frac{\partial c}{\partial x}$
Here, $\lambda$ is a geometri... |
In short, I'm looking for either:
(1) Publications or other sources dealing with contour/isosurface finding algorithms, so that I can write my own implementation (and parallelize as best I can), or
(2) Suggestions about high-level libraries in Fortran, C/C++, or other languages, that may be useful for finding such su... |
I have implemented a simple logistic regression function with IRLS algorithm using the armadillo linear algebra libray
#include <iostream>
#include <string>
#include <boost/math/distributions/normal.hpp>
#include <boost/math/distributions/students_t.hpp>
#include <armadillo>
#include <cmath>
using namespace boost::mat... |
On a recommendation from Mathematica.SE, I am posting this on Computational Science.SE:
I am trying to quantify stiffness of an ODE by relating it to the fine-ness with which NDSolve treats it's time step.
BACKGROUND
For the uninitiated:
Essentially, when an ordinary differential equation is stiff and we attempt to so... |
I want to integrate a particle path in 2D using the integrate.ode module. Things that are a bit different in my case are that, I only want to integrate up to a certain position, determined by the maximum allowed x coordinate of the particle: x_max.
The main issue I have is that the particle may first move very slowly a... |
In the solution of sequences of linear systems
$$A_ix_i=b_i\quad\text{for}\quad i=1,2,\dots$$
with Krylov subspace methods, data can be recycled from already solved linear systems in order to speed up the computation of subsequent linear systems (complementary to preconditioning). For the analysis of recycling strategi... |
Gaussian09 prints coordinates where the local coordinate system as center at
$C = (\Sigma n_i*X_i)/(\Sigma n_i)$
where $n_i$ is the Mass Numer of the atom. However, the Mass Number is not actually the mass of the nucleus. If we instead choose $m_i$, the true mass of each atom, as the weighting factor, we do not get the... |
I'm looking for a specific type of Delaunay tessellation algorithm.
The algorithm should be:
incremental so that I can add new sites inside known simplexes (i.e. no searching for the right simplex is necessary)
usable with a high number of dimensions (100 or more)
usable with a high number of sites (10000 or more)
(... |
I'm asking about the solution of the Helmholtz equation on a periodic domain with piecewise constant wavespeed in different frequency regimes. One possible approach is to solving this problem is to write down integral equations on the boundary surfaces in terms of the Green's function of the system. Since the domain is... |
I am looking for a C++ tensor library that supports dimension-agnostic code. Specifically, I need to perform operations along each dimension (up to 3), e.g. calculating a weighted sum. The dimensions is a template parameter (and thus a compile-time constant). Another constraint is that the library should be relatively ... |
Every CPU vendor seems to make BLAS libraries that are specialized to run on their hardware. Do they do the same for LAPACK? Or is that a non-issue because LAPACK is written entirely in terms of BLAS library calls?
|
I have a dense Hermitian matrix that is approximately unitary, so it has eigenvalues that are $\sim \pm1$. I would like to compute all the eigenvectors corresponding to the $+1$ eigenvalue (not necessarily a small fraction of the total number of eigenvalues). Is there some more efficient way to accomplish this than tri... |
I am a novice at PETSC, and I have been trying to write an FVM code for steady heat conduction in 2D using PETSC (square, regular grid, Dirichlet boundaries)
Since the large matrix , say A, will be sparse I declare 5 non-zeros per row and use MatCreateSeqAIJ()
My question is about assembling the entries of the matri... |
My question is about implementation alone.
Consider a square domain with regular square, cell centred finite
volumes. This is for the multiscale finite volume method (Jenny and Lunati)
I need to solve the Poisson equation on each cell of the "dual mesh", i.e.,
the mesh constructed by joining centroids of each cell. ... |
I'm looking for a way to optimize this procedure. This is the problem:
I have a list of bit vectors $\mathbf{A} = [ a_1, a_2, a_3, ..., a_n ]$
I have a list of bit vectors $\mathbf{B} = [ b_1, b_2, b_3, ..., b_m ]$
For every $b \in \mathbf{B}$, I need to find the following minimum hamming distance:
$$\min \left\{ \fo... |
I would like to compute the inverse of some large block diagonal sparse matrix. The number of rows and columns is somewhat over 50,000. The blocks are 12 by 12 and are sparse (27 non zero elements).
I tried to compute the inverse of the entire matrix (using solve). This was not possible, the entire matrix is too big.
A... |
Figure below depicts a cross section of a creek for which I am trying to measure the water flow for that section. What we have as inputs are a bunch of sample points on the river. For each sample points we measured the depth of creek at that point (e.g. h1, etc) the velocity of water at that point(e.g. v1) and the dist... |
I'm currently working on this project and I have a basic structural analyzer that uses the finite element method. Essentially, I turn each block into a set of trusses, construct a stiffness matrix relating each truss's force to each other, and feed it into Matlab.
The next task is for me to speed it up, ideally by usin... |
Is it possible to find interior eigenvalues closer to some lambda using Davidson method? I was searching online but found that most people use Jacobi-Davidson method for that.
|
The problem is to find a 2nd order finite difference approximation of the partial derivative uxy, where u is a function of x and y.
Page 5 of this pdf I found does a centered difference approximation it in two steps. It first does the 2nd order centered finite-difference approximation of one of the partials, and then i... |
I've got some problems solving (numerically) this system of equations.
\begin{array}{l}
40 \cdot \cos (2t) + 105 \cdot \cos ({\theta _3}) - 75 \cdot \cos ({\theta _4}) - 91.924 \cdot \cos ({337.62}) = 0\\
40 \cdot \sin(2t) + 105 \cdot \sin({\theta _3}) - 75 \cdot \sin({\theta _4}) - 91.924 \cdot \sin({337.62}) = 0
\end... |
As we know, computing the authority (or hub) score of HITS ranking method, means to use the following matrix equation:
$$ \textbf{a}^{k}=A^T A\textbf{a}^{(k-1)} $$
and apply the power iteration method, but with significant problems: actually, AFAIK, the convergence in not guaranteed, for the matrix $A^T A$ is sometimes... |
I would like to determine the theoretical number of FLOPs (Floating Point Operations) that my computer can do. Can someone please help me with this. (I would like to compare my computer to some supercomputers just to get an idea of the difference between them)
|
I want to solve the diffusion equation, i.e.
$$
\dot{f} - f'' = 0
$$
with a boundary condition $f(0) = f(1) = 0$ and with an initial condition that $f$ is a boxcar function concentrated over some small region of size $d \ll 1$. The units are scaled so that the diffusion constant is equal to unity. Then I want to use t... |
When using the dual mesh (vertex-centered) for finite volume methods, you end up with a cell center at the boundaries between materials. It is possible that the equations being solved in each material are different, or at the very least don't have continuous derivatives at the boundary (for example: poisson's equation... |
What's the difference between these two methods? Can a problem be solved by one method will be able to solved by the other? Can both/or one of them be parallelized with OpenMP and/or MPI?
|
In a high-dimensional setting, say $d \gg 5$, what is a recommended way of evaluating a spherical integral of a smooth (non-symmetric) function $f(\mathbf{x})$?
$ \int_\mathcal{S_r} f(\mathbf{x}) \mathrm{d}(\mathbf{x})$
where $\mathcal{S_r} = \{ \mathbf{x} \; | \; \|\mathbf{x}\|^2 = r \}$.
I want to avoid Monte Carlo i... |
I am looking for a routine (or set of routines) in the Intel MKL that that can replace dslucs (Incomplete LU BiConjugate Gradient Squared Ax=b Solver) in SLATEC (http://www.netlib.org/slatec/lin/).
|
I have a function $f(r,\theta,\phi)$ which I am expressing in terms of spherical harmonics
$$
f(r,\theta,\phi) = \sum_{l=0}^{\infty} \sum_{m=-l}^{l} g_{l,m}(r) d_{l,m}(\theta,\phi)
$$
where $d_{l,m}$ are real spherical harmonics (RSH - formula below taken from Wikipedia).
\begin{align}
d_{\ell m} &=
\begin{cases}
\disp... |
I am trying to implement BFGS. The purpose is to approximate Hessian matrix only (not using the quasi-newton optimization steps), so i am using steepest ascent for optimization. What I observe is that the final Hessian approximate is very sensitive to the initial guess of Hessian. If I start with Identity matrix, most ... |
I have multiple plane constraints in $\mathbb{R}^3$ of the form:
$$n_i \cdot x \ge \delta_i$$
Where $n_i$ is the $i$th plane normal (in form (x, y, z)), $x$ is a point in space, and $\delta_i$ is the plane constant (distance of plane from origin).
I want to find $x$ such that the above is satisfied and the distance fro... |
Suppose:
I have two domains, $\Omega_{1} = [0, 1/2] \times [0, 1]$ and $\Omega_{2} = [1/2, 1] \times [0, 1]$.
The domains share an interface $\Gamma = \{1/2\} \times [0, 1] = \partial\Omega_{1} \cap \partial\Omega_{2}$.
I mesh both domains in such a way that nodes and faces on the interface match up between the two me... |
recently I have been working on solving some math problems using Fortran. There occurs to me that a linear matrix equation:
$$
AX-XA=B
$$
where $A$ and $B$ are known $n\times n$ matrices and $X$ is the one need to be solved. I know this looks like a typical Lyapunov equation. However, in order to solve this equation sp... |
This is such a basic topic but there are so many different methods proposed for solving a linear system of equations. I recently found a very good source but couldn't really make sense of all the stuff it contains.
If I had to pick only 5 methods that I should understand thoroughly for solving big systems of linear equ... |
I am trying to solve an equation like $R(x) = 0$, using Newton-Raphson method. To obtain the $x$ increment in each iteration I solve $dx = -(A)^{-1}\cdot R$ where $A = dR/dx$. But the convergence criteria, here $||R||$ reduces to a certain amount, depending on the input, e.g. 1.e-8, and it remains so. After much trying... |
I have an integral of the form
$$
I(n) = \int_0^1 dx f(x) \cos(n \pi x) ,
$$
where $n$ is an integer. In other words, I calculate the cosine Fourier coefficients of function $f$, which is real and continuous on the interval. I need to calculate this for a large number of large values of $n$. Currently I'm just doing th... |
I have a set of modified compressible Euler equations that I would like to solve using a WENO method. The issue is that the modified flux function involves derivative and filtering terms and I'm not sure how to compute the derivative terms in a consistent manner within the WENO scheme. For simplicity, the key aspects o... |
This is originally a problem in programming, but since almost no one on Stackoverflow know how to solve this I went here instead; https://stackoverflow.com/questions/23003612/javascript-angular-velocity-by-vector-2d
I want to convert X and Y velocities to angular velocity, this is the formula I am currently using to ca... |
This is originally a problem in programming, but since almost no one on Stackoverflow know how to solve this I went here instead; https://stackoverflow.com/questions/23003612/javascript-angular-velocity-by-vector-2d
I want to convert X and Y velocities to angular velocity, this is the formula I am currently using to ca... |
While calculating the eccentric anomaly of a satellite using the Newton-Raphson method, what initial estimate of the root for E (eccentric anomaly) should be taken for least number of iterations(best approximation of root) to take place and why?
|
Consider the nonlinear system of equations
$$
(1) \quad qk^2a_1^2E^2+wna_0a_1AE+pnka_0^2a_1E+rn^2a_0^2A^2-rn^2a_0^3A^2+qk^2a_0a_1ABE-qk^2na_0^2E^2=0,
$$
$$
(2) \quad nwa_1^2AE+nwa_0a_1AB+2pnka_0a_1^2AE+2pnka_0^2a_1AB+2qk^2a_1^2ABE-qk^2na_1^2ABE-2qk^2na_0a_1AmE+qk^2na_0a_1AB^2+2rn^2a_0a_1A^2-3rn^2a_0^2a_1A^2=0,
$$
$$
(3... |
Let $A$ be a large symmetric positive definite matrix, and suppose that we can efficiently apply $A$ and have a fast solver to apply $A^{-1}$, but we do not have access to the matrix entries for either $A$ or $A^{-1}$.
How can one use this to solve the system,
$$\sqrt{A}x=b?$$
As suggested in this previous question, t... |
I'm writing a Monte Carlo simulation in which I have to maintain a large collection of items. This collection contains a great many duplicates, and it will most likely be best to store some or all of these in the form of a number that records the number of duplicates, rather than storing each one individually. (The ite... |
I've been reading a paper about using Matrix Completion for Photometric Stereo but I am having some troubles in section 2.2 trying to understand why irrespective of the number of pixels and the number of images $$rank(\mathbf{O}) = 3$$
where $\mathbf{O}$ is the matrix with the images linearized and stacked as column ve... |
Consider the scalar PDE for $u$ with Dirichlet boundary conditions:
$\mathrm{div}(\mathcal{K}\nabla u) = f\; \forall x\; \in \Omega \subset R^2$,
$u = 0 \; \forall \; x\;\in \partial\Omega$
where $\mathcal{K} \in R^{2\times 2}$ is positive definite symmetric.
For a start I assume $\Omega$ is the unit square with a u... |
I am trying to solve 2D Poisson equations with Neumann boundary conditions. When the mesh is uniform, Poisson equation is singular and symmetric, so the method listed in Null Space Projection for Singular Systems works well. But when the mesh is non uniform and sharp immersed boundary method is implemented to treat the... |
I will try to give the motivation behind this problem and later the math formality.
Given a grayscale image (1 Channel - $M \times N$ Matrix).
Someone marks some pixels as anchors.
Now, you need to interpolate the other pixels (Which are not anchors) by minimizing a given cost function s.t. the end result is an image w... |
A dense matrix is distributed for parallel computation column-wise, then multiplied from left & right by sparse matrices. What would be appropriate c++ libraries for these tasks?
|
Heres a couple of questions,
1) Does a CAS exist that can manipulate Cartesian based tensors and produce a simplified output that is hopefully in index notation?
2) If not, is there some indirect method to accomplish this?
I'm talking about doing rather simple manipulations such as computing,
$$
\nabla^{2}_{\mathbf{r}}... |
TUCKER_ALS computes the best rank-(R1,R2,..,Rn) approximation of tensor X, according to the specified dimensions. I am using MATLAB Tensor Toolbox Version 2.5. I am wondering if I write a paper, how can I refer to the algorithm?
|
In one article I faced with such terms as sSVD, cSVD and oSVD. As I understand sSVD - standart SVD, cSVD - svd for block-circulant matrices, but I can't find what is oSVD.
1) What is oSVD?
2) Can anyone suggest me a few articles about cSVD, oSVD and their implementations?
|
According to a recommendation, this is a re-post of that.
currently, I'm working on a way to compute the 2 biggest eigenvalues of a real, symmetric, huge and sparse matrix that changes a few entries from time to time. The problem should be solved using an algorithm, that does not compute solutions from scratch every ti... |
I have a data mining assignment where I make a content-based image retrieval system.
I have 20 images of 5 animals. So in total 100 images.
My code returns the 10 most relevant images to an input image.
Now I need to evaluate the performance of my system with a Precision-Recall curve. However, I do not understand the c... |
Say I have an LP that is unfeasible and that I want to find the solution that makes it feasible without strongly violating the current constraints.
What is a principled way of solving this problem, and how can I know a posteriori what constraints would have to be violated?
I found the following example, but it is uncle... |
I'm trying to construct the 12 x 12 beam element stiffness matrix from a section constitutive matrix (6 x 6 with shear stiffnesses, axial stiffness, bending stiffnesses and torsional stiffness on the diagonal). I can get a 6 x 6 beam element matrix as would be used in a multibody formulation using the method described ... |
I am working on good retrieval mechanism for big data systems. I am of view that multidimensional structures could be of great use for aggregations and querying . Multidimensional structures as mentioned in theory/products could replace the need of OLAP CUBE.
Here is some data size info residing into data-warehouse a... |
I'm looking for an efficient way to solve a symmetric tridiagonal system $Mx = d$, where the upper and lower diagonals of $M$ are offset from the main diagonal by $k$ rows/columns:
$$
\begin{bmatrix}
{b_1 } & {0 } & \ldots & {0 } & {a_1 } & {0 } & \ldots & { 0} \\
{0 } & {b_2 } & {0 } & { } & {0... |
I have to minimize a linear function with respect to variables u which take values [0,1]
The number of variables can exceed 10,000
There are thousands of linear inequality constraints
I need a solution which is good but does not have to be optimal.
Are there any heuristic approaches for doing this ?
For example I could... |
In Latent Semantic Analysis one uses the SVD to perform a dimensional reduction of the term-document matrix, via the Eckart-Young theorem.
Now, the rank $k$ approximation obtained by E-Y is proven to be the best approximation in the Euclidean norm as well as in the Frobenius norm.
The whole literature I'm reading about... |
I hope you can help me out with this. I have to find the solution x to an inverse system
$$
x=A^{-1}b
$$
This inverse problem is basically a least square problem with a rank-1 update.
$$
x=[uv^{T}+H^{H}H]^{-1}H^{H}b
$$
There are two objectives, one can be achieved with the least square problem and the other with the ... |
Are there optimizers where it is possible to specify ordinal ranking of parameters?
Assume that I have a function of three parameters $f(\theta_1, \theta_2, \theta_3)$. Are there optimizers such that I can specify
$$
{\arg\min}_{\theta_1 > \theta_2 >\theta_3}f(\theta_1, \theta_2, \theta_3)
$$
Assume that $f$ is smooth... |
In numerical methods for ODE's, the model problem
y' = cy
where c is complex is regarded as sufficient in performing error analysis for different methods in solving ODE's.
Is it sufficient, and why? In my opinion, it overlooks many potential functions that can have different error forms.
|
Minimize $\sum\limits_{i=1}^{10} L_{i}x_{i}$ subject to $Af=p$ and $x \geq|f|$.
Here $L$, $p$ and $A$ are known, $f$ and $x$ unknown. $Af=p$ is underdetermined.
Since $x$ is minimized when $|f|$ is minimized, I rewrote the problem putting $x = |f|$:
Minimize $\sum\limits_{i=1}^{10} L_{i}|f_{i}|$ subject ... |
I have the following equation I came across which was solved using least squares
$x = \sum_{n=1}^{N} A_{n} y_{n}$
Where $x$ is a $m \times p$ matrix and $y$ would be of size $m \times p$ as well ,where $p=N$.Both $x$ and $y$ are known. $A_n$ are the weights to be computed for every $y_{n}$.
How would one do a least squ... |
Before I know how to do tucker decomposition, I mistakenly thought the core tensor is only from combining the singular value matrices of the flattening matrices. Yes I know it is not now.
For the tucker decomposition method for a 3 way data's tensor decomposition, a core tensor is calculated using the original tensor(e... |
I want to publish the software package I've written for my graduate work along with a paper describing the package. So far I've been considering liberal licenses such as BSD.
However, I am now aware that publishing your code may involve an agreement to the journal's licensing terms (cmp. e.g. this question) or even tra... |
For a hobby project I need to solve a series of quadratic programming problems each with
about 500 variables
about 1000 constraints, each of the form $x_i-x_j\le c_{ij}$
the objective function is the sum of about 300 terms of the form $w_{ij}^2(x_i-x_j+d_{ij})^2$
about a third of the variables are ignored by the objec... |
I want to calculate the Wigner quasiprobability distribution function of a particular wavefunction. The definition suggests a few straightforward ways of calculating it, but I was wondering if there's something more efficient than the naive approaches of either directly evaluating the integral or taking the fft of the ... |
I'm solving a system of nonlinear ODEs that take the form
$Q_{nm} \ddot{y}_m + S_{nkl}\dot{y}_k\dot{y}_l +V_n = 0$
where Einstein summation is assumed, $y_i$ are the dependent (complex) variables, $Q_{nm}$,$S_{nkl}$ and $V_n$ are all low order polynomials in the dependent variables, $n =1,...,N$, with $N$ the $resolu... |
I have 10000 variables (each of them is binary), vector of positive coefficients and a matrix $A$ ($10000\times10000$), if $A_{ij}=1$, then $i$th and $j$th variables can take 1 simultaneously, if it is 0, then it is not possible. The goal is to maximize their weighted sum. What algorithms and software could I use to so... |
I have a 2D distribution of mass on a sphere given as a matrix of masses in latitude-longitude grid cells. I need these masses projected to another grid
on the same sphere with different location of pole and different cell sizes, again as masses in grid cells.
The projection has to be:
fast
monotonous, i.e. not creat... |
I have a project where I need to use quadratic fields Specifically numbers of the form $a + b \sqrt{-3}$ with $a,b \in \mathbb{Q}$.
For example here are the prime numbers in Eisenstein integers:
I do not want to use sage. I would like to write my own data type to incorporate numpy. PARI would be useful - but it's ... |
I'm trying to simulate a simple diffusion based on Fick's 2nd law.
from pylab import *
import numpy as np
gridpoints = 128
def profile(x):
range = 2.
straggle = .1576
dose = 1
return dose/(sqrt(2*pi)*straggle)*exp(-(x-range)**2/2/straggle**2)
x = linspace(0,4,gridpoints)
nx = profile(x)
dx = x[1] - x... |
I'd like to distinguish different types of beers in my fridge using a Raspberry Pi. I saw a very good tutorial on Adafruit that utilized OpenCV for face recognition. Can these same face recognition algorithms, Eigenfaces & Fisherfaces, be used to train my raspberry pi for recognizing different types of beer cans?
|
I am using a python script to create wirebond interfaces in Ansys HFSS. Variables define the board, wirebond, and package geometry. To simulate a new wirebond, I just edit the geometry variables and run the script.
My problem is, I have to use the computer with HFSS (and it's expensive license) just to verify the geom... |
I am trying to implement QR factorization of a non-square matrix in FORTRAN. I have the algorithm for a square matrix but not for a non-square. I use Housholder matrices. Do you know where I could find the whole algorithm or code for the non-square case so that I can be sure I am doing it the right way (i am new in pr... |
I have done a Fourier transformation of two signals (in time) $S_1(t),S_2(t)$ using numpy's fft which will give me $S_1(f),S_2(f)$. The corresponding frequency grid I get via fftfreq. In the frequency space, I then interpolated the two signals to a new grid using interp1d. I need to do this to match the two grids of th... |
I am trying to teach myself some programming in C by doing the problems of project Euler. I am trying to find the largest prime factor of the number 600851475143 (Euler problem 3). I have written a code which successfully does this for numbers which are not too large:
#include <stdio.h>
int primearray(int,int);
main()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.