instruction stringlengths 43 28.1k |
|---|
I am using adaptive mesh refinement to solve one dimensional inviscid Burgers equation. However I am facing some difficulty to handle grid interfaces which are not uniform (coarse-fine grid interface). There has to be conservation of variable at the grid interfaces which I am not able to incorporate in my code.
If anyo... |
I have used free vibration analysis in FEM. After analysis, we can usually use animation to see the motion of each eigenmode (In Abaqus or Comsol, I would choose either half harmonic or full harmonic). Does anyone know the principle behind it?
In my understanding, eigenmode analysis already removes the time factor, i.... |
I probably miss something very basic. I don't see how to use Metropolis–Hastings algorithm for computation of integrals, if I don't know the volume of accessible phase space (i.e. proper normalization by partition function).
Consider this two problems ( which are very much connected):
1) Number of possible states under... |
I was trying to simulate the precession of Mercury based on the perturbed solution:
$$\frac{1}{r}=\frac{m}{B^{2}}(1+e\cos\phi+3\frac{m^{2}}{B^{2}}(1+e\phi \sin\phi +e^{2}(\frac{1}{2}-\frac{1}{6}\cos2\phi))),$$ where $e$ is the eccentricity of mercury, B is a constant which is the angular momentum per mass.
here is my... |
I am facing a problem as follows:
I have created a Voronoi diagram and now I want to assign to each region, a value, i.e., I want to extend this Voronoi diagram to form a 2 variable function in Matlab. For example, let one of the cells be named $R_1$, I want that the 2 variable function I am going to assign a constant ... |
I am self teaching myself python and computational physics via Mark Newmans book Computational Physics the exercise is 2.9 of Computational Physics I have to compute the Madelung constant. .
I have two different solutions worked out I wanted to know which code is correct and is there a way to exclude 0 in my range so ... |
Multigrid (MG) may be used to solve a linear system $Ax=b$ by constructing an initial guess $x_0$ and repeating the following for $i=0,1..$ until convergence:
Compute the residual $r_i = b-Ax_i$
Apply a multigrid cycle to obtain an approximation $\Delta x_i \approx e_i$, where $Ae_i = r_i$.
Update $x_{i+1} \gets x_i +... |
How to discretize the following 4th order PDE using finite difference method?
$$\frac{\partial^{2} y}{\partial t^{2}}+\frac{\partial^{4} y}{\partial x^{4}}=0$$
thanks
|
Since this question is related to computation, I decided to post here. Hopefully it will be seen as appropriate.
I've just started running atmospheric and oceanic models, and I realize that I need more cores, memory, and disk space than my current desktop has. My institution has a high performance computing service, wh... |
I have a non-convex optimization problem in the form:
\begin{align}
\min_{b,\xi,\eta} \sum_{i=1}^{n} b_i \xi_i + \gamma \Vert \eta \Vert \cr
\text{s.t.} b\geq 0, b^\mathsf{T} 1 = 1,b_i \leq \frac{1}{n-n_m}, \xi \geq 0 , \xi_i \geq 1-a_i^\mathsf{T} \eta\cr
\end{align}
In Boyd and Vandenberghe's Convex Optimization, Appe... |
I want to find the frequencies of vibration of a circular and square drum. To do this, I need to solve a 2-dimensional wave equation (PDE) with boundary conditions. Every method that I have researched to solve this uses separation of variables to generate two ODE's, and this is referred to as the "eigenvalue problem". ... |
I am currently a .NET software developer(SQL Server, ASP.NET, C#, MVC & Web Forms). In my spare time I'm researching different areas of environmental science. E.g.(Hydrology, Ecology, Atmospheric Science...) I'd eventually like to be working in a scientific field contributing in some way to the preservation and healthy... |
In essence we can create a cluster based on a number of machines(e.g., Beouwulf style). Here the question is, do all the cluster nodes require the exact same cpu(s) specification (e.g., core, cache, etc.)? If not how the companies can scale their cluster units, they just by hundreds or thousands units at the same time?... |
I am trying to solve a linear equation system $\textbf{A}\textbf{x}=\textbf{b}$, e.g. a Poisson equation discretized in strong form, using biCGstab method.
Since there are only natural Neumann boundary conditions, at least one Dirichlet condition must be given. I simply add condition $\sum_{j} x=0$ to row $i$ in $\text... |
I have been given the following homework question to solve:
I am having trouble writing a RK4 solver in C++ for this ODE. I am also not sure how to plot my solution. Here is my code so far:
#include <iostream> //Header file for cin & cout
#include <cmath> //Header file for mathematical operartions
#include <iomanip... |
I have a real symmetric function $C(x,y)$ defined on $x,y\in[0,\infty)$, i.e. $C(x,y)=C(y,x)$.
I want to solve the eigenvalues problem, i.e. find eigen values and eigen functions:
$$\lambda \psi(x)=\int_0^\infty C(x,y)\psi(y)dy$$
This operator corresponds to the covariance matrix such as $C_{i,j}=Cov[x_i,x_j]$, i.e. it... |
It has been a while since I have done linear least squares, so forgive the simple question, but here goes:
I am attempting to find the best fit coefficients, $\{c_i\}$, of a linear combination of basis functions: $f(x) = \Sigma_j^{M} c_j g_j(x)$ for data $\{x_i,y_i\}$. Where there are $M$ basis functions and $N$ points... |
I use FEM to simulate deformations of elastic objects for animation applications in computer graphics. The governing equation is generally with the form:
$$
\mathbf{M}\ddot{\mathbf{u}} +\mathbf{C}\dot{\mathbf{u}}+\mathbf{K}\mathbf{u}=\mathbf{f}
$$
where $\mathbf{M}$ is the mass matrix, $\mathbf{C}$ is the damping matri... |
I have a set of data that I need to visualise under Tecplot, the file format is for example:
X U1 U2
1 0 0
2 0.1 0.01
3 0.15 0.01
4 0.12 0.015
. . .
. . .
. . .
I need to display X and U1, and ideally U2 on the same graphic.
|
I usually debug a python script by putting the following line into the source code:
import ipdb; ipdb.set_trace()
Then when I run the script, ipdb starts. Very often I need to plot some arrays in an interactive graph. I use the following commands to make it possible inside the ipdb:
import matplotlib.pyplot as plt
plt... |
Are there any high quality trust region optimization implementations that
allow nonspherical ellipsoid trust regions, and
are written in Python, or are easy to call from python?
By nonspherical ellipsoid trust regions, I mean that each Newton step solves (or approximately solves) a problem of the following form:
\be... |
I am simulating $\nabla^{2}u=0$ with mixed Dirichlet-Neumann boundary conditions on 2-D using 2-Grid method. Dirichlet conditions are applied to left and bottom boundary with $u=1+x+y$ and Neuman conditions are applied to top and right boundary with $\frac{\partial u}{\partial n}=1$. The solution converges for 4x4 grid... |
Not sure if this is the right place to post this, but some time ago i stumbled upon a website which had algorithms submitted by users in different languages... I am unalbe to find that website, anyone know aobut it here?
|
I have a linear system with matrix which eigenvalues are uniformly distributed on the unit circle like this:
Is it possible to solve this kind of system effectively by iterative method, maybe with some preconditioner?
|
My task in numerical analysis is
We are interested in finding values of β0 for which z(x) = 2500. Use
an efficient algorithm to determine the rays which pass through the
receiver.
Now I'm just looping through and printing and plotting it and seeing from inspection that the values between 8 and 9 and between -8 an... |
I am pretty sure that the following variance objective function should be a convex quadratic problem. My objective function is as follows:
$$ \text{argmin } \text{var }(X*L) \xi \geq 1, \text{ where } \xi \text{ are integers} $$
$\xi$ are random variables, $1 \leq i \leq 1000$ and elements of vector $X$. $L$ is a $100... |
I'm solving a constrained optimization for matrix $\mathbf{A}$ with dimension 6x6, where one of the constraints is $\mathrm{det}(\mathbf{A})>0$. I use the NLopt package to solve my problem and provide value&&gradient routines of the objective and constraints. As described in the matrix cookbook, the gradient of matrix ... |
I'm attempting derivative-free minimization of, essentially, a black-box function in one dimension. Up to now I've been using BOBYQA as implemented in NLopt. The shape of the function looks like this:
Clearly, giving a good initial guess will help immensely here, as I can avoid the nasty flat region to the right of th... |
Geometrically, scaling and preconditioning seem to address similar challenges in optimization. However, these two concepts are implemented very differently. Take trust region Newton method, as an example. When a problem is poorly scaled, an elliptical trust region is recommended. Is it possible to formulate an equivale... |
I am working on some CFD codes - generating adjoint of a CFD model, for example. My background however is in computer science. I have absolutely no clue what the model represents or what it is doing. I would like to gain some domain knowledge of CFD. However, I notice that as I start, my physics foundations are a bit s... |
Normally when searching in sorted sets, binary searches are a fast, nice and easy way to locate data. It does however break down in the hypothetical scenario of having a set of arbitrarily large but unknown size as it cannot have its upper limit set to infinity.
In order to solve this, one could imagine doing a, for la... |
Consider, you have a problem in an infinite dimensional Hilbert or Banach space (think of a PDE or an optimization problem in such a space) and you have an algorithm that converges weakly to a solution. If you discretize the problem and apply the corresponding discretized algorithm to the problem, then weak convergence... |
I obtained 6 eigenpairs of a matrix using eigs of Matlab.
How can I demonstrate that these eigenvectors are orthogonal to each other? I am almost sure that I normalized in the right way modulus and phase but they do not seem to be orthogonal. The matrix should be normal.
The matrix comes from the discretization of the ... |
I would like to start running FSI simulations for cardiovascular applications.
More precisely, I'm interested in the behaviour of aortic valve under
physiological flow conditions in which the interaction of fluid and structure
must taken into account and the valve undergoes very large deformations.
I read that there a... |
I want to minimize a black box function $f(x)$, which takes a 8$\times$3 matrix of non-negative integers as input. Each row specifies a variable, whereas each column specifies a certain time period so that $x_{ij}$ is the $i$th variable in the $j$th time period.
$f(x)$ is the activation function for a convolutional fil... |
Given some equally spaced data for a function on an interval, we can use line segments (pictured below), quadratic functions, various cubic schemes, and increasingly higher order polynomials to approximate the function using this equally spaced data.
For the linear scheme I show as an example in the figure above, as ... |
I wanted to know the procedure of starting up a water vapor calculation in LAMMPS. I want to calculate properties of water (i.e. in vapor state) at a higher temperature than 100 Celsius. Currently I am setting up the simulation same as liquid water but with the density of $0.001\, \text{g/cm}^3$. Initially my box has ... |
I am curious about how much one loses in terms of computational cost when complex numbers are used instead of real numbers?
I guess the number of floating-point operations and memory doubles, but I am not sure if the wall time doubles necessarily. I am especially asking this for matrix factorizations, $LU$, or $LDL^T$... |
I would like to use the Eigtool of professor Trefethen for pseudospectra but I have a generalized eigenvalue problem to solve:
$$ \lambda M x = K x. $$ It seems that Eigtool takes only one matrix as input. Is it possible to use the Eigtool my case too? I.e. having two matrices as input?
In addition, my matrices are r... |
Can I start parallel run of LAMMPS from inside a C++ code. Is it possible to compile my code and then do mpirun with my compiled code. I also have one system command inside the code, which starts parallel instances of LAMMPS with mpirun.
|
I am looking at a very simple problem, but can't quite find the best solution. I need to accept a lat/lon coordinate and based on that coordinate find all the points within roughly ~1km (accuracy is not too important to me). It will always be ~1km searches as well (fixed). I now face how to store these coordinates in m... |
I am self teaching myself python and computational physics via Mark Newmans book Computational Physics the exercise is 5.17 of Computational Physics. I have to shift the limits of integration for an improper integral after a change of variables so that Gaussian quadrature method gives a more accurate result. I am suppo... |
Typically I have seen P2/P1 elements used for Stokes equation, but I want to use P2/(P1+P0) and P2/P0 elements because I want to ensure local mass conservation. When I say P2/(P1+P0), I simply mean the concatenation of the basis for P1 and P0 separately.
I ran simple problems in FEniCS with both element pairs and while... |
I have a set of four non-linear ODEs representing a negative feedback. I have done parameter variation by random sampling to study the sensitivity of steady state and other dynamic properties to parameter fluctuations.
From the analytical expressions of steady state I have calculated jacobian and its eigenvalues for ea... |
I have an inverse problem in which the optimal positions for a variable number of injections needs to be determined.
If the number of injections was fixed, I could easily imagine implementing Simplex or Genetic Algorithm (or really any optimisation algorithm). With a changing number of variables, however, it seems tha... |
I'm looking for an open-source (to use and learn from) software which computes Bessel functions of integer order of real argument to double precision the fastest among all such implementations. Currently I've tried Boost.Math and GSL. From these GSL appeared to be faster for smaller arguments and much slower for larger... |
I have a set of first 25 Zernike polynomials. Below are shown few in Cartesin co-ordinate system.
z2 = 2*x
z3 = 2*y
z4 = sqrt(3)*(2*x^2+2*y^2-1)
:
:
z24 = sqrt(14)*(15*(x^2+y^2)^2-20*(x^2+y^2)+6)*(x^2-y^2)
I am not using 1st since it is piston; so I have these 24 two-dim ANALYTICAL functions expressed in X-Y Cartes... |
I know that the Nitsche's method is a very attractive methods since it allows to take into account Dirichlet type boundary conditions or contact with friction boundary conditions in a weak way without the use of Lagrange multipliers. And its advantage, which is to transform a Dirichlet boundary condition into weak term... |
would you please help me to solve following problem
$$x^*= \text{argmin}\ xLx^T+ |P^Tx|$$
$x$ is binary
$P$ is a known vector (with positive and negative values)
$L$ is Laplacian matrix
I have limited knowledge on optimization. As I read on the web, I can solve the problem with quadratic MILP if there was no absolu... |
Assume I have 3 levels of grids. Finest Grid = level 2, Coarser Grid = level 1, Coarsest Grid = level 0.
Relax $u$ on $Au = b$ at level 2 for 3 times.
Find residual $r2$ at level 2, then restrict to level 1
Relax $e$ on $Ae=r$ at level 1 for 3 times.
Find residual $r1$ at level 1, then restrict to level 0.
Solve $Ae=r... |
I am solving a linear stability problem using finite element discretization. Then, I have a generalised eigenvalue problem:
$$ \lambda M x = J x.$$
I obtain complex eigenvalue and eigenvectors from Arpack using inverse shift method. I would like to compare the eigenvectors obtained with different meshes. To do this it ... |
Consider the approximation of a function by a truncated (finite) Fourier series, using complex notation:
\begin{equation}
f(x) \approx F_M(x) = \sum_{\alpha = -M}^{M} \hat{f}_{\alpha}e^{-i\alpha x} \quad (1)
\end{equation}
Where $\hat{f}_{\alpha}$ are the Fourier coefficients, which would be computed as:
\begin{equatio... |
I have tried it with Lis, Intel mkl and PETSc. Everywhere you need to pass an actual matrix to GMRES or other similar iterative solver, while I want to pass just function which multiplies my matrix on vector (my matrix is having special structure and forming it completely is inefficient).
There is no problem for me... |
I would like to write the most optimized program for array manipulation in Fortran (e.g. matrix multiplication of large matrices, squaring large matrices, etc.)
So, using the fortran compilers on the market today (e.g. gfortran), how does F77 measure up against F90/95 (or F03)? Is there a particular compiler I should u... |
Currently I am using the EIGEN C++ library to try to solve $x$ from the equation $Ax$ = $b$. One problem I encountered is that the matrix $A$ is a correlation matrix with size > 5000 and can sometimes be rank deficient and have small, even negative eigenvalues. As a result of that, the matrix tends to have huge condit... |
Issue
Hello everyone, I have got a program (from the net) that I intend to speed up by converting it into its parallel version thru the use of pthreads surprisingly though, it runs slower than the serial version. Below is the program:
# include <stdio.h>
//fast square root algorithm
double asmSqrt(double x)
{
__asm... |
I have to solve numerically a differential equation in C. The equation is:
How can I write some code to solve it? Are there some numerical methods (Runge-Kutta maybe?) to solve it?
A colleague proposed to me to use the exact discretization method, but I don't think it's the smartest way to do, especially in programmi... |
i need to get a Givens-Rotation, which zeros a matrix entry when multiplied from the right side. I did already look at this Topic https://math.stackexchange.com/questions/945736/givens-rotation-from-right-side but i could not really understand the process of getting there.
Some more details: I have to matrices, A and B... |
I would be really glad to get some specific advise on how to implement a simple MCMC algorithm (in Matlab, if possible). I'm not yet too familiar with optimization methods. My problem goes as follows:
The function $s(c_1,c_2)$ is a simulation which depends on the two constants $c_1$ and $c_2$, and $f(s(c_1,c_2))$ is th... |
In thin plate bending problems, it would be very nice if we could model a thin rectangular plate with a mesh of many elements in the transverse directions, but only a single element in the longitudinal direction. However, when try to model a plate this way and use piecewise linear polynomials, the resulting numericall... |
I'm trying to do an integral of the form $\int_C f(u,v) $, where $C$ is a set of contours in $u$ and $v$. In particular, each variable's contour starts at $-\infty+i \epsilon$, goes around a branch cut at $-2g$ (where $g$ is a parameter of the problem), then goes below the real line and out to $-\infty-i \epsilon$ befo... |
I have this map showing the geography of Europe (below), and I wish to convert it to a matrix in python that would be a 2D approximation of this image where 0's would represent the ocean and 1's would represent landmasses. I plan to subsequently to do a biased random-walk on the resulting grid where walkers are more l... |
I saw many examples of application of FFT for computation of convolutions and solving PDEs ( like Poisson equation ). It is very strightforward and efficient if I work with rectangular (orthogonal) lattice.
However, I don't see how exatly modify the transformation if the lattice is sampled along non-orthogonal lattice ... |
Consider the following differential equation
\begin{equation}
p(t) = \frac{\partial q(t)}{\partial t}
\end{equation}
where $t \in (0,\infty)$. I have a build a code that spits out values of the function $p$ for the variable $t$.
Now, I'm looking for a scheme that will analyse these values of $p$ in order to determine ... |
I am trying to do a simple parallel sparse matrix vector multiplications using PETSC. My sparse matrix is a simple tridiagonal laplacian matrix, which is distributed over multiple processors using PETSC.
My main question is that if I do the same operation by simply iterating over the vector and updating each value
A[i]... |
Currently, I am working on an unconstrained energy minimization function, but I need to add some constraints. My system is a 2D lattice with a force applied to it, and I want the sides to be able to move, but the length of each side to be constant.
I know that using a Lagrange multiplier could make the terms I want to ... |
I don't have an high-end machine on which run my simulation (Python + C extensions, based on numpy for calculations)
Thus I intend to run the program on my PC, for several hours. I won't use the computer during the simulation, but many other processes run in background anyway
Will those other processes running on my W... |
I have been looking for stability analysis of general reaction-diffusion problems, of the form
$\frac{\partial u}{\partial t}=\nabla\cdot D\nabla u-k\,u$ ,
to be solved using the standard Finite Element in 2D with an explicit Euler time stepping. I haven't found any estimate or proof for the stability criteria for $\D... |
Given a linear BIP
$$\text{Minimize}\;\;\;c^Tx$$
$$\hspace{6.5mm}\text{Subject to}\;\;\;Ax\leq b$$
$$\hspace{38mm}x\in\{0,1\}^n$$
We can in theory convert the constraints to the convex hull constraint $Hx\leq d$ which allows us to perform a linear relaxation and find the solution to the linear BIP that way. Is there a... |
Originally posted on stats.stackexchange, I'll pair the post down to something a bit more general.
Suppose I have vectors $\{\mathbf{\delta}, \mathbf{x}_1, \ldots, \mathbf{x}_J\}$, where $\delta \in \mathbb{R}^{J}$ and $\mathbf{x}_i \in \mathbb{R}^{I}$. Furthermore, let $\mathbf{A} \in \mathbb{R}^{I\times J}$ be such t... |
I am doing a molecular dynamics simulation. I need to assign initial velocities to the atoms. I want to assign the initial velocities which follow the Maxwell-Boltzmann distribution. How do I calculate such initial velocities using a uniform random number generator with range [0,1)?
|
UPDATE: The problem turned out to be the step (refer penultimate paragraph below) where I was factoring out a small value from the vectors of the numerator and denominator and then computed dot products/norm-square. Computing these terms in straightforward manner resulted in CG steps converging with almost same number ... |
A canonical form of primal linear program is
$$
\text{minimize } c^T \cdot x \\
\text{subject to } Ax = b, x \geq 0
$$
The dual is
$$
\text{maximize } b^T \cdot y \\
\text{subject to } z \equiv c - A^T y \geq 0
$$
As far as I know $y$ are called Lagrange multipliers. How do you refer to the other terms,... |
I have multiple CSV files with point-coordinates and, possibly, multiple data values attached to them, i.e., the rows look like
x y z data1 data2 ...
Is there any possibility to display say 10 of those CSV files in a "time" series in Paraview?
|
I just implemented an Algebraic Multigrid solver for a Mixed Dirichlet-Neumann Boundary Value problem and was surprised to see the speed-up as compared to a simple iterative solver for a large problem like 2048x2048 and 4096x4096. My next step is to implement it in parallel. If Multigrid is so useful, I am sure people ... |
Given a triangulation (geometry), are there known algorithm in finding common side of triangles, that is O(N) or better?
|
I need to solve a non-linear set of three equations using scipy.
However, I do not have any clue on which algorithm is suitable for my problem from a mathematical point of view (stability, convergence behaviour), since scipy provides a huge variety of different algorithms in the scipy.optimize module such as:
scipy.op... |
I have a 2D mesh of triangles used in Finite Element method to discretize the domain. I want to calculate the midpoints of all the edges because I want to use $\mathbb{P}^2$ elements. I am using MatLab. The data that I have is:
Matrix containing nodes coordinates, $x$ and $y$. The size is $N\times 2$, where $N$ is the... |
I want to solve linear hyperbolic system using Chebyshev collocation method. As this method puts severe constraint on the time step for the explicit time integration, I decided to switch to implicit time integration (backward Euler). I use time integrator vode with options method='bdf' and order=1 from Python package s... |
I am trying to replicate the MATLAB simulation presented in this paper. More specifically, I have to code the solution to this equation
$$\frac{a}{2R_i}\frac{\partial^2 V_m}{\partial x^2} - \left[g_\text{Na}m^3 h(V_m - E_\text{Na}) + g_\text{K} n^4(V_m - E_\text{K}) + g_\text{S}(V_m - E_\text{S})\right] = C_m \frac{\... |
I am trying to learn Gmsh and Fenics and was looking at an example which shows the application of Boundary conditions on a simple Poisson problem.
Here is the link:
http://fenicsproject.org/documentation/dolfin/1.3.0/python/demo/documented/bcs/python/documentation.html
The example defines the domain Ω to be a model of... |
For an assignment I have to implement a 1D Poisson PDE with inhomogeneous Dirichlet BC's
$$\Delta_1 u = f, \quad u(a)=g(a), \: u(b) = g(b) $$
I have managed to make it work, but I am not seeing the expected convergence behaviour. I used the standard (?) discretisation on the unit interval [0,1],
$$-u_{j+1} + 2u_j - ... |
I am trying to understand the DG FEM methods, but I got lost in their definitions. In some papers I read that the "C0 penalty method" is one example of the DG method, but sometimes they are separated and handled as two different methods. Can someone explain what's the difference between them?
Edit:
There is a paper de... |
Is there a natural way to find the solution to
$$AX = B, X^TX = C \enspace \text{?}$$
$X$ is a matrix and has a small number of rows, and $A$ is sparse.
An approximate solution would be fine.
|
I am attempting to simulate fluid flow through a porous foam. I would like to have no-slip boundary conditions on part of the boundary and free flow conditions on the inlet and outlet. Right now I am using the Darcy-Brinkman equations:
$-\mu\Delta\mathbf{u} + \mathbf{K}\mathbf{u} + \nabla p = \mathbf{0}$
$\nabla\cdot\m... |
I'm Looking for an implementation of the IAPWS-IF97 water properties on C/C++.
I'm aware of the library freesteam. However freesteam does not include all the properties I'm looking for. Particularly I need differential properties like dh/dp, dv/dp and in certain regions. I use a similar implementation for Octave/Matlab... |
I'm currently conducting research into subway paths, but stand in front of a problem, with no programming knowledge and an extremely short time-limit.
Probably the question I am asking is trivial, but I would be very happy if you could point me in the right direction or to the right forum!
Having generated all possibl... |
I am in the process of writing a finite element code to solve the Navier-Stokes equations using the theta method for time stepping (basically Crank-Nicholson for diffusion and forward Euler for nonlinear terms). To find the pressure I use the pressure correction method. Once I find the pressure I need to update the vel... |
I wrote a program that calculates the best fit in VBA excel for the following model
$$
y_k=c_1x_k+c_0+c_{-1}(x_k)^{-1}
$$
solving for the best fit parameters $c_1$, $c_0$, and $c_{-1}$. However I wrote several custom subroutines to accomplish this. One subroutine calculates the moments of $x$ and $y$, another builds th... |
I am trying to find the most optimized way to perform Matrix Multiplication of very large sizes in C language and under Windows 7 or Ubuntu 14.04. And searching led me to BLAS, LAPACK and ATLAS. However, I couldn't tell which one I can use? I mean BLAS Level 3 DGEMM seems like the function for my case but I couldn't f... |
I am trying to predict y(t+1) of a function by using a feedforward neural network with Matlab. The inputs are the previous 3 previous values (y(t-2), y(t-1), y(t)) and the training output is the actual value I want to predict y(t+1).
The "prediction" seems perfect! The output seems like a perfect copy of the original g... |
I have an infinitely long cylinder defined using
radius
a point in 3d
Axis defined using a 3d vector
I have a set of points with 3d coordinates placed in a grid.
I want to wrap this grid of points around the curvature of my cylinder. How to do it
|
Is there any (efficient) algorithm to select subset of $M$ points from a set of $N$ points ($M < N$) such that they "cover" most area (over all possible subsets of size $M$)?
I assume the points are in 2D plane.
The naive algorithm is simple, but prohibitive in terms of time complexity:
for each subset of N points
... |
I am not sure if my question is on topic but I have a piece of Fortran code that is used to perform successive over relaxation. Prior to performing successive over relaxation the author is calculating the spectrum of the matrix.There is very little documentation so I am just trying to figure out all the details for doc... |
I am interested in a reference in the literature that discusses the performance of Dense Linear Algebra (blas routines) and dense linear algebra (sparse blas routines).
I am interested in knowing for what combinations of size and density sparse routines outperform dense routines. I am mainly interested in a shared mem... |
Given 2 vectors $\mathbf{u}$ and $\mathbf{v}$ the following are equivalent:
$\mathbf{u}\cdot\mathbf{v}$
$\mathbf{u}^T \mathbf{v}$
$u_i v_i$
$v_i u_i$
$\mathbf{v}\cdot\mathbf{u}$
$\mathbf{v}^T\mathbf{u}$
Given a second order tensor (matrix) $\mathbf{A}$ and a vector $\mathbf{b}$, are the following also equivalen... |
I am trying to reproduce Tang & Othmer paper which is related to excitations and oscillations in G-protein model in Dictyostelium discoideum, an amoeba species. The mathematical model in the paper is like below:
where $w_1,w_2,w_3,w_4,w_5,u_1,u_2,u_4$ are biochemicals and other parameters are constants associated with... |
I'm trying to implement 1D advection solver using WENO and ENO schemes.
\begin{equation}
\frac{\partial u}{\partial t}
+ \frac{\partial f(u)}{\partial x} =0
\end{equation}
where:
\begin{equation}
f(u) = C\,u
\end{equation}
Discretized as:
\begin{equation}
\frac{u^{n+1}_j-u^{n}_j}{\Delta t}
+ \frac{F_{j+1/2}-F_{j... |
Given a set $Q$ of $n$ points, we want to find the subset $S_\max \subset Q$ of $k$ elements that maximize the total distance between them.
$$S_\max = \max_S \sum_{\substack{
i,j\in S\\
i \neq j}} d(x_i,x_j)$$
where in my case $x_i$ is a boolean vector and the distance considered is the Manhattan/Hamming distance.
Is t... |
I have a system of differential equations with some unknown parameters and I need to find the optimal parameter set that fits best with the data I have.
For each parameter set choice (using for loops), my code solves the system of DE numerically, then extracts from the time vector a time subvector that agrees with data... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.