instruction stringlengths 43 28.1k |
|---|
I am trying to use the cvx package for optimization. However, I am having some issues with it. I have a variable X which is a matrix but I cannot add $X^{-1}$ in the objective function. What should I do? Is it even possible to use it or it violates the definition of semi definite programming and hence cannot be include... |
Consider two computers with different hardware and software configurations. When running the exact same serial Navier-Stokes code on each platform it takes x and y time to execute one iteration for computer 1 and 2, respectively. In this case, $\Delta = x-y$, is the iteration time difference between computer 1 and comp... |
Is there a way to convert vtk file without visualizing into a image file such as png in the bash terminal itself?
I have found that for the vtk files that I visualize to take longer time than its corresponding image file (which is made from a different file).
|
The function $f \colon x \mapsto (e^x-1)/x$ has singularity near $x = 0$. That singularity can be lifted, though: for $x = 1$, one should have $f(x) = 1$, since
$$
e^x = \sum_{k=0} \frac{x^k}{k!}
$$
and thus
$$
(e^x - 1)/x = \sum_{k=1} \frac{x^{k-1}}{k!}
$$
However, the form $(e^x-1)/x$ is not only not defined at $... |
I'm trying to understand the types of numerical errors, to do this I want to calculate $\sin(\pi/2)=1$ numerically. To do this I use the Taylor series of $\sin(x)$ in 0:
$$\sin(x)=x-\frac{x^3}{6}+\frac{x^5}{120}-\frac{x^7}{5040}+ \ldots$$
To make the calcultaions I did the following Fortran program:
program main
impli... |
I am writing a small MATLAB package which will solve a certain class numerical problems. There are 3 stages of the algorithm and the user has 5 choices for each stage. I have implemented the entire problem using $\approx 20$ functions and 3 switch cases (one for each algorithm stage). It works fine but I am considering... |
I am currently mulling over the idea of taking a code I currently work with and rebuilding it from the ground up to allow for the use of more efficient programming and numerical techniques.
In the early stages of the design I decided I would like to write a wrapper class for matrices and vectors. This would allow me t... |
Is there a way to understand what happens when a singular operator is discretized and inverted using the pseudoinverse (say using the SVD Moore-Penrose pseudoinverse)?
For example, if we discretize $(\nabla u, \nabla v) $ with a finite element method or something, the operator should usually be singular due to the fa... |
My question seems elementary:
I use a new numerical method to do fluids dynamics simulation. I use t=0.001s as the time step. But I don´t know how many iterations I need to achieve velocity convergence, because I see the velocity still increases even the iterations was 1000. I want to ask the experienced scientist usua... |
We're all familiar with traditional least-squares method for constructing a straight line through a set of data points. The question is: suppose I show you a scatter plot which clearly is suggestive of more than one line (suppose two). I need to split the data points into two groups and build a regression line for each... |
I am exploring the Method of Lines as a way of time stepping semi-discretised PDEs with ODE time-integration solvers. For an excellent introduction to this technique see the scholarpedia.org article. A popular ODE solver is VODE from http://www.netlib.org/ode/vode.f. It is also possible to access this solver by the sci... |
DEM: discrete element method.
XDEM: extended discrete element method.
For my current project of furnace simulation with granular materials, I am interested in the methods mentioned above. I have not studied these method in the past and now I am looking for general introductory materials. Either monograph or scientific ... |
I want to simulate a nonlinear stochastic differential equation
$$
{\rm d}X_t = f(X_t) {\rm d}t + g(X_t){\rm d}B_t
$$
where $f,g \in C^{\infty}({\mathbb R}^n ,{\mathbb R})$ and $B_t$ is one-dimensional standard brownian motion. How can I do it by MATLAB?
A good simulation file for a similar equation might be helpful.
|
Looking for some software to deal with 50kx50k sparse matrix applying non-negative matrix factorization. Do you know any?
|
I am a student and I came to this question while solving problems regarding the float-points.
a 16 bit floating point number format is given as;
1 bit for sign
9 bits for mantissa
6 bits for exponent.
mantissa is normalized fraction denoted in sign magnitude form and exponent is in 2's complement form.
base of the sys... |
I have $n$-dimensional matrices $\mathrm{\hat{H}}(\vec{k})$ depending on vector parameter $\vec{k}$.
Now, eigenvalue routines return eigenvalues in no particular order (they are usually sorted), but I want to trace eigenvalues $E_i$ as smooth functions of $\vec{k}$. Because eigenvalues are not returned in any particula... |
I need to write some data from a computation, that will be read later by Paraview (.vtu or vtk file).
When it comes to file size , should I go for the ASCII format or the Binary format ?
|
Consider a method (e.g., FEM) with variable approximation order $p$. Now, we know that the optimal order of convergence is given by
$$e = C h^{p+1},$$
where $h$ denotes the mesh size and a constant $C$ that does not depend on $h$. As a result, we can study the experimental order convergence (or $h$-convergence) on a se... |
What is the best way to handle a constraint of the type $ax_1^2+x_2^2+...+x_n^2=c$ in a gradient descent algorithm?
I would like to solve an optimization problem of the type:
$$ \min J(x_1,..,x_n)$$
with this constraint using gradient descent. I tried to think of a way to alter the gradient so that it doesn't affect ... |
I have two physical properties which are exact (no noise). If I perform a polynomial regression of any degree, all coefficients are statistically significant. The problem is that the residuals are always "sinusoidal". For me, it probably means that a polynomial is not the adequate function to fit but I did not find bet... |
When applying Galerkin method, we have two conventions, i.e. multiply the test function $v$ at left/right, $(v,u)/(u,v)$.
Both ways won't matter for a simple problem like Poisson's equation, since the stiffness matrix $K$ and Mass matrix $M$ are symmetric, and the transpose doesn't change.
However, if there is also fir... |
I trying to find a computing algorithm for the Significant wave height $H_{1/3}$, or $H_\text{s}$ or $H_\text{sig}$ in the time domain.
This is defined as the average height of the one-third part of the measured waves—which are $N$ in number—having the largest wave heights:
$$
H_{1/3} = \frac{1}{\frac13 N} \sum_{m=1}^{... |
What I am trying to solve is the following
Rayleigh-quotient-like minimization:
\begin{eqnarray}
\begin{split}
(P_0)\quad\min_x \frac{\left( Ax - b\right)^\top \left( Ax - b\right)}{x^\top
x}\\
s.t. \quad\quad Ax-b \geq 0
\end{split}
\end{eqnarray}
where $A\in R^{m\times n}$, $m>n$, is a full rank matrix.
It is well kn... |
I have a quantity $\beta(\mathbf{x}) \in \mathbb{R}$ that I wish to compute on a curved, smooth surface defined by $\{\mathbf{x}: \Gamma(\mathbf{x})=0\} \subset \mathbb{R}^{3}$. (This surface is approximated by a trimesh.) Since I want to display the quantity as a color on the surface, I need to sample, then bin via $\... |
I am working on Fermion and Boson Hubbard Models, in which the dimension of Hilbert Spaces are quite large (~50k). Because the Hamiltonian matrix is ~50k X ~50k, to diagonalize these big sparse matrices I am using DSYEV(LAPACK SUBROUTINE) which takes quite good amount of time(8hrs on Xeon Hp workstation Z400 16 GB RAM... |
I have some function of $R^2$, that must be numerically computed. For instance, I might be interested in a real-valued contour integral that begins from (x,y) = 0.
$$
f(x,y) = \Re\left[\int_0^{x + iy} t^3 + t^5 \, dt \right]
$$
where $\Re$ is for the real part. (In practice I don't have the explicit form for f and it m... |
I have a similar question compared to this post.
I am trying to maximize a function, which is a black-box to me. I have tools of gradient-free methods; in fact, this problem is reasonably smooth that I can even use the numerical approximation of gradients most of the time. However, there is this last problem: the domai... |
CG Algorithm
https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!386&v=3
System of equations, the question and the example
https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!387&v=3
% below result is only accurate at decimal 0.1, but not the tolerate, why?
% is the conjugate gradient algorithm only for square m... |
After download from http://sourceforge.net/projects/reduce-algebra/files/ and unzip reduce-windows64-20101007.zip
failed to open reduce, got error in window 8
libgcc_s_sjlj-1.dll is missing
|
I want to compute a symmetric matrix A from a vector b by: A = b * b'.
Does the Eigen library automatically take into account that it does not need to do all calculations to get A (because of the symmetry which repeats most of the matrix entries)?
If not, I could take advantage of the symmetry and write my own functio... |
I'm solving an electrostatic problem governed by Laplace equation $$-\nabla \cdot (\rho^{-1} \nabla u) = 0$$ in the following domain: a brick ($\Omega_1$) with a cylindrical inclusion ($\Omega_2$), where $\rho$ - electric resistivity, $u$ - potential. There are two plane electrodes attached to opposite faces of the bri... |
Suppose that you have a system of PDEs to solve. At least for simplicity, let's assume it's time independent, quasi-linear (linear in its derivatives) solved on a rectangular grid in (x,y) space, and with boundary conditions specified all around. My question is more general, but let's start here.
There might be two dep... |
I'm a beginner with FE. My application is the pricing of financial derivatives where the space is five dimensional. So, adding time, the problem has six dimensions.
I tried to look around (Fenics, escript, deal.II,...), but my understanding is that those software are limited to 3 + 1 (3d space + 1d time). Is this corre... |
I've been using the basic visualization features of Paraview.
Now, I want to go further by writing python macros to handle some specific tasks.
My question for the advanced users:
Are there any known guides to get a proper start ?
Already done:
Read the Paraview wiki + found some concise handouts (with which I starte... |
I am teaching a numerical analysis survey class and am seeking motivation for the BFGS method for students with limited background/intuition in optimization!
While I don't have time to prove rigorously that everything converges, I'm looking to give a reasonable motivation for why the BFGS Hessian update might appear. ... |
In direct numerical simulation of turbulence what is the advantage to look at the spectra of the energy flux rather than the transfer spectra?
The transfer spectra corresponds to the triple-velocity correlation coming from the non-linear interaction of the Navier-Stokes equations.
The transfer spectra is generally note... |
I want to solve a general nonlinear constrained optimization problem
$$\min_q\ f(q)\quad \textrm{s.t.}\quad g_i(q) = 0,\ h_j(q) \geq 0.$$
The problem is that while the equality constraints $g_i(q)$ are individually smooth and have non-vanishing gradients at feasible points, the gradients are not linearly independent. I... |
Let $M$ be a matrix which has the following properties:
1) $M$ is Hermitian
2) $M$ has only rational entries
3) $M$ is known to have rational eigenvalues
What algorithms are there for exactly computing the eigenvalues of $M$?
Mathematica seems to be able to diagonalise such matrices very very quickly, so such methods m... |
The company I work for has been developing an application for real-time control of sewer networks. Every 5 minutes, a MILP problem is built or updated, then solved using Gurobi.
For mid-sized cities, this works well. But for larger cities, the MILP problems get bigger and of course more time is required to find an acc... |
I often encounter the general adage that interior point methods are difficult to warm start. Is there an intuitive explanation behind this advice? Are there situations in which one can expect benefits from warm starting in an interior point method? Can anyone recommend some helpful references on the topic?
|
I am a little confused with PETSc's documentation for MatSetValuesBlocked. The code below works fine for matrices when I choose small block sizes, but I get errors when using bigger block sizes for the same matrix. The two main questions:
1) What is the right way to use MatSetValuesBlocked?
2) What is the correct way t... |
I'm a huge advocate of test-driven development in scientific computing. It's utility in practice is just staggering, and really alleviates the classic troubles that code developers know. However, there are inherent difficulties in testing scientific codes that aren't encountered in general programming, so TDD texts are... |
Basically I try to compute several smallest eigenvalues of some sparse 50k*50k eigenvalue problems using matlab.
$$Ax = \lambda Bx$$
With matlab eigs, it's not as fast as I expected. So I tried some preconditioned routine like lobpcg, however it said "The problem size is too small, relative to the block size. Try using... |
I am trying to model heat conduction within a wood cylinder using implicit finite difference methods. The general heat equation that I'm using for cylindrical and spherical shapes is:
Where p is the shape factor, p = 1 for cylinder and p = 2 for sphere. Boundary conditions include convection at the surface. For more ... |
I am working on a web-based molecular visualization program for a research project (e.g., one that can display XYZ and PDB files). The current options are outdated (for instance, Jmol uses Java). My advisor uses MDL Chime but almost no browser supports that plugin nowadays.
My idea has been to use modern web tools so... |
I am solving an advection-diffusion problem where the solution variable is mostly flat apart from a small region near the centre of the domain where there are shape gradients. I would like to generate mesh faces for 1D finite volume cells (see below) where the cells are clustered towards the centre of the domain.
I ha... |
I'm solving a problem (page 16 is in English) in numerical analysis and this is the solution:
>> z=[0:500:4000 5000:1000:12000];
>> data=[5050 4980 4930 4890 4870 4865 4860 4860 4865 4875 4885 4905 4920 4935 4950 4970 4990];
>> fun=@(p)(4800 + p(1))*ones(size(z)) +p(2)/1000*z+p(3)*exp(p(4)/1000*z)-data;
>> x0=[0 0 0 -1... |
I would like to solve a three-dimensional nonlinear wave equation in an infinite cylindrical waveguide numerically. Since the waveguide is dispersive, shocks are less likely to form. Both the convective and the materila nonlinearity (from the state equation) are considered. Is there any open source CFD codes/softwares ... |
I'm trying to save a 'big' rational matrix in SAGE, but I'm running into problems. After computing my matrix A, which has size 5 x 10,000 and each entry contains rational numbers in fraction form with total number of digits for numerator and denominator more than 10 pages, I run the following command:
save(A, DATA + 'A... |
I want to work on NVIDIA GPU cluster for my thesis. But the cost of clusters are too high for me to bear. Although I can buy a couple of latest GPU cards, but buying cluster is impossible for me at least right now. What is the alternative? Are there any Non profit organization promoting and renting clusters for educa... |
What are good references for time-stepping of the coupled incompressible Navier-Stokes-heat equation (Boussinesq flow),
$$
\begin{cases}
\rho\left(\dot{\mathbf{u}} + \mathbf{u}\cdot\nabla \mathbf{u}\right) = -\nabla p + \mu\Delta \mathbf{u} + \rho(\theta) \mathbf{g},\\
\nabla\cdot \mathbf{u} = 0,
\end{cases}\\
\begin{c... |
I've used an explicit finite difference scheme to model the 1D time dependent temperature distribution in a friction weld. I want to now verify the consistency and convergence of my algorithm.
I have no exact solution and assume I must use an approximation produced at a very refined mesh spacing to calculate the relati... |
I was wondering why there are no online or offline computational science contests? At least I couldn't find much by googling. I mean, like a topcoder for computational sciences.
I assume one reason is providing massive computational power for few areas of study which costs lot of money. Other might be to formulate righ... |
Usually, I write serial code, and when I do, I write unit tests with some xUnit-style testing framework (MATLAB xUnit, PyUnit/nose, or Google's C++ testing framework).
Based on a cursory Google search, I haven't seen much on how practitioners unit test code that uses MPI. Are there any best practices for that?
Compared... |
There's a body of work out there dealing with the discrete convergence of adaptive finite element methods using error estimators. Most deal with proving the property
$\|u-u_{k+1}\|_U \leq (1-\alpha) \|u-u_{k}\|_U, \quad 0<\alpha < 1$
by relying on Galerkin orthogonality, monotonicity of error, error estimator informa... |
I need to implement a matrix inversion of a very big matrix that currently is exceeding the memory limits of my machine (unfortunately I have little memory running on 32-bit machines). I would like to use a few PCs together to get the result. I am using Linux and I have access to several machines with MPI.
Can you sugg... |
I'm trying to code a simple physics simulator in C++ but I'm stuck on the air resistance issue. Surfing the Internet I only find a drag coefficient for very basical area shapes when the air is perpendicular to the area. However, even when simulating a falling parallelepiped, I found this not sufficient to describe the ... |
I am not familiar with the file format used in HDF5, but I am wondering if HDF5 files are suitable for revision control with git (or for example Mercurial or Subversion)? I guess what I mean is: are HDF5 files suitable for line-based diff'ing or will git have to treat an HDF5 as one big binary and store an entire copy ... |
I have a data set that I'm trying to cluster, and I know that there will be at most N clusters (based on some physical properties of the thing the data set represents). However, there could be as few as 1 cluster. The clusters themselves are pretty tight, and the cluster separation is pretty large (the inter-cluster d... |
I am trying to make a system that will sort a list individuals and their preferred list of others. This may not make complete sense, but bear with me.
I have a list of people, each with their list of other people in the main list. The idea is to group the people in to g number of groups, with n number of people per gro... |
I have an equation that says essentially, $$J = A_1 * ( \exp( -V * A_2 ) -1 ) + A_3$$ where the output $J$ is what is desired and depends on three constants and the output depends on $V$.
My problem is that I need to efficiently solve the following equation for $\eta$,
$$J = B * ( \exp( C * \eta) - \exp(-D * \eta) ) + ... |
I would like to know how Dirichlet conditions are normally applied when using the finite volume method on a cell-centered non-uniform grid,
My current implementation simply imposes the boundary condition my fixing the value of the first cell,
$$
\phi_1 = g_D(x_L)
$$
where $\phi$ is the solution variable and $g_D(x_L)$... |
When solving Poisson's equation on the unit square $\Omega$ with homogeneous Dirichlet boundary conditions for $x=0$ and Robin-type conditions at the rest of the boundary,
$$
\begin{cases}
-\Delta u = 0 &\quad \text{ in }\Omega,\\
u = 0 &\quad\text{ on } \Gamma_{\text{left}},\\
\alpha(u-1) = \mathbf{n}\cdot\nabla u &\... |
I asked this question over at stackoverflow, and got blasted for it. I am currently working with legacy MD code written in C that my university uses, and haven't moved to a more modern library like OpenMM or mdcore (even though I fully want to). Right now, our visualization routines are horribly out of date, and I am... |
The behavior of a pump is the following:
If $h \geq h_{start}$, then pumped flow is a constant $Q_p$. The pump works as long as $h > h_{stop}$
If $h \leq h_{stop}$, then pumped flow is 0. The pump will be off until $h < h_{start}$.
Here $h$ is the water level in the pumping well, $h_{start}$ is the height where the p... |
For an Stochastic Differential Equation, e.g.,
$$
\frac{du}{dt} = \alpha*\sin(u*t)
$$
where $\alpha$ is normally distributed with nonzero mean, I am trying to use a stochastic collocation approach to find simple statistics such as the mean and the variance.
From what I understand, $\alpha$ is sampled a few times, and... |
I am looking to solve large systems of non-linear ODEs. There appears to be a very large list of methods available varying in complexity, and I have a hard time searching through them and picking one.
Are any of these methods preferred for large systems? Both speed and accuracy play large roles, so I'm hoping that the... |
For my series on mechanical systems with Lagrange, I would like to add the double pendulum and a rolling pendulum. I set up the Lagrangian $L$ and solved for the ODE of motions, and got the following:
$$ \ddot x = - \frac l{2m} \cos(\phi) \ddot \phi + \frac l{2m} \sin(\phi) \dot \phi^2 $$
$$ \ddot \phi = - \frac m{2l} ... |
I'm trying to calculate the divergence of a vector quantity $L(L_x, L_y, L_z)$ in COMSOL. I calculate it using the built-in differentiation operator as follow:
$$\nabla L = d(L_x,x)+d(L_y,y)+d(L_z,z)$$
I'm wondering what is the notation or the function for divergence. Does COMSOL calculate the divergence of $L$ correct... |
My default mesh geometry length is in 80 mm. For OpenFoam, I scaled the mesh in meters as 0.008 m. Once I import the mesh in OpenFOAM, it is a collection of point coordinates. Now, the location of these points and spatial difference between different points will be the same either if they are in mm or m. I feel spatia... |
For parts of a talk, I need a note on "Immersed boundary finite difference method", mainly about the reason of appearing this branch in the finite difference methods, considering mathematical principles and algorithm of implementation related to it. A survey paper, chapter of a book, lecture note or any other material ... |
While reading many research-papers comparing parallel implementations of algorithms on different machines/architectures, I have noticed that the performance comparison is always listed in terms of GFlop/s and not the actual wall-clock time for the run in seconds. I am curious why this convention is used.
My only guess... |
Computational Science people:
The title is the question: exactly how does Matlab's "interp2" command (with the "cubic" option) perform bicubic interpolation? I tried the Mathworks documentation online and I couldn't find the answer there. I found a nice Wikipedia article at
http://en.wikipedia.org/wiki/Bicubic_inter... |
I have been trying to debug this error the last few days I wondered if anybody has advice on how to proceed.
I am solving the Poisson equation for a step charge distribution (a common problem in electrostatics/semiconductor physics) on a non-uniform finite volume mesh where the unknown are defined on cell centres and t... |
I am doing a numerical simulation of a elasticity problem. It is very simple. A cuboid elastic body with the right end fixed on the wall, under the gravity(but here I set it to be 1 along the z-axis always), what is the motion of this elastic body? The initial displacement and velocity are 0 everywhere, that is, the st... |
I am looking for help in understanding the use of discrete Fourier transform as an approximation to continuous Fourier transforms.
As an exercise, I considered a Gaussian $$f(x) = \exp\left(-2x^2\right),$$ the (continuous) Fourier transform of which is $$F(k)=\frac{1}{2}\exp\left(\frac{-k^2}{8}\right).$$ I sampled t... |
I am just wondering if Discrete Exterior Calculus, as a new numerical method , is good at numericall solving problems in elasticity, fluids or other physical/real area.
|
What exactly is GPU Boost and how it helps? What is the improvement in GPU Boost 2.0? I did not understand much reading from the link. Can somebody explain the main concept and details?
|
I've been using LAPACK dgeev in FORTRAN in the last months spending hours to diagonalize ~4000*4000 matrices. It takes about 2'75 hours to find eigenvalues and eigenvectors this way. I thought FORTRAN should be faster than Mathematica as it usually is for this kind of tasks. After all this hard work and coding effort I... |
Problem statement
I am trying to simulate a spherical pendulum, with
rod length $r$
south-polar angle $\theta$ and azimuthal angle $\phi$
initial values $(\theta_0,\phi_0)= (0,0)$
My particular pendulum is hanging in a construction, which can be moved around by external forces (say, an experimenter). This constructi... |
Say we have a discretised a coupled nonlinear system of two PDEs to give a system of ODEs which approximates the original system,
$$
\frac{\partial u}{\partial t} = F_1(t,\boldsymbol{u,v}) \\
\frac{\partial v}{\partial t} = F_2(t,\boldsymbol{u,v}) \\
$$
where $\boldsymbol{u} = [u_1 \cdots u_N]^{T}$ and $\boldsymbol{v... |
I have a non-linear equation that converges, and reaches suitable accuracy after around 20 steps, however each step is very expensive to calculate. The series are never quite the same, but they are similar; there are 4 examples below. Ideally, I would like to be able to guess the final answer (getting as close as possi... |
What architecture are current computers based on?
The Princeton Architecture or the Harvard Architecture? Some notes I found online state the Princeton architecture, but this creates the Princeton bottleneck. The Harvard architecture was suppose to alleviate this. Have all systems transferred to a more "Harvard" app... |
I have a function defined by three parameters (or variables): $f(a,b,c)$ This function is not explicitly defined but is actually a piece of code which returns the result of fitting a curve $g(a,b,c)$ to a set of $(x,y)$ points in a 2D space:
O = {$(x_1,y_1,w_1), (x_2,y_2,w_2), ...$}
where $w$ are weights associated wi... |
I would like to do a numerical quantum dynamics of a displaced gaussian in harmonic oscillator using split-operator method (see bottom of these notes by Hal Evans for the algorithm).
I have a problem with the step (3). I'm not sure how to represent the momentum term $p^2$. Is it just an index of the loop?
creation of t... |
I am using the implicit finite difference method to discretize the 1-D transient heat diffusion equation for solid spherical and cylindrical shapes:
$$
\frac{1}{\alpha}\frac{\partial T}{\partial t} = \frac{\partial^2 T}{\partial t^2} + \frac{p}{r} \frac{\partial T}{\partial r} \; \; \; \text{for} \; r\neq0 \\
\frac{1}{... |
I need to solve a quadratic program in Java which minimizes a sum of squares. The problem is that there are constraints to be satisfied, and so a quadratic optimizer must be used. I've been thinking of using JOptimizer for this.
However, the problem is that the $x^T A x$ term in the quadratic program. There are approxi... |
I'm attempting to model energies of a transition metal complex using hybrid DFT but having issues with the description of my metal centers. The problem is alleviated by adding extra polarization functions only to the metal centers. Is this in general a safe procedure, or should I look into applying these extra polari... |
Does anyone know a compiler for Fortran 77 available as a free download?
I have pre-written 77 code from a source published in the early 90's that I just need to compile, build, and run. But I don't know enough about Fortran to update it myself.
|
I'm trying to find the eigenvector corresponding to the second smallest eigenvalue of a large $(4,000,000 \times 4,000,000)$ matrix $L$. $L$ is a graph Laplacian, with the following structure: $L = D - SBS^\intercal$, where $D$ is a diagonal matrix and $S$ and $B$ are a large sparse matrices. $S$ has dimension $4,000,0... |
In certain cases, boundary integral methods are preferred for elliptic partial differential equations as opposed to finite difference methods. For instance, for solving the Poisson equation in a domain $D$
$$\nabla^2 u = \phi_0 \tag{$\star$}$$
with boundary condition $u = f$ on $\partial D$, instead of discretizing $(\... |
In (hydrostatic) atmospheric general circulation models, for example the so-calle Primitive Equations, consisting of the horizontal momentum equation, the hydrostatic balance, the continuity equation, and the energy balance
$$
\begin{eqnarray}
\nonumber
\frac{\partial}{\partial t}\vec{v} & = & \vec{v}\times(f+\xi)\ve... |
I originally posted this in the mathematics StackExchange, but I was told that this is more of an operations research question. I would like to know if anyone has any thoughts on how to go about finding an answer.
I have the following scenario that I want to find an algorithm for in order to put into a c# program: Tra... |
I have a system of nonlinear equations $F(x,a) = 0$ and I know that at a specific point $a_c$ a bifurcation occurs, thus the Jacobian becomes singular. How can I switch branches and start following a new solution path as I increment $a$?
|
I'm given a smooth probability density function via its values on a reasonable fine grid. I assume that cubic spline interpolation (or cubic spline interpolation of the logarithm of the density) will be sufficient to evaluate it at arbitrary points with high accuracy. I wonder how to generate random numbers that repro... |
I am not sure if I can post these kinds of questions on this site, but I was wondering if you could help me with a question that's been bothering me.
We have started learning about analysis of recursive algorithms and I got the gist of it. However there are some questions, like the one I'm going to post, that confuse m... |
Does anyone know why I'm seeing these errors? I'm not giving it a matrix.
>>> t = 0:0.1:2*pi;
>>> quiver3(4*t,3*cos(t),3*sin(t));
error: __quiver__: operator +: nonconformant arguments (op1 is 3969x1, op2 is 6
3x1)
error: called from:
error: /usr/share/octave/3.6.2/m/plot/private/__quiver__.m at line 179, colum
n 10
... |
I am looking for GPU libraries to accelerate a code I have, whose primary "high performance" regions have singular value decomposition, QR factorization and Eigen values, Eigenvectors computation. I have looked through Nvidia's website on its tools like CuBLAS,Magma etc., but I do not want to write the code in Cuda.
it... |
Background on finite volume method
When discretising the flux with a central difference stencil of the the advection-diffusion equation restriction $\frac{ah}{d} < 2$ must be observed for the finite volume method to remain numerical stability. Where $a$ is the velocity, $h$ is the cell width (considering 1D only) and $... |
Let
$$f(x) = \left\{ \begin{array}{l}
{a_1}x + {b_1} & if\,0 \le {x_1} \le x \le {x_2}\\
{a_2}x + {b_2} & if\,{x_2} < x \le {x_3}\\
\vdots \\
{a_n}x + {b_n} & if\,{x_{n - 1}} < x \le {x_n}
\end{array} \right.$$
be a piecewise continuous function and $0\leq a_1\leq a_2\leq \cdots \leq a_n$.
Formulate the problem of min... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.