Mathematica

Mathematica

• All Sites
• All Meta Sites

## Finding capable function in an equation with Mathematica or Matlab

I want to find a function f(xi) that suffices the following equation: (vi-xi)f(xi)'=f(xi) when xi = k*vi, where vi is a constant and xi is the variable. Anyone know howto describe this problem …

## mathematica help ~ assign each element in a matrix to a value from a column vector

I have this 4x4 square matrix A, which has a random value in each element. I now have a column matrix (16x1) B which also has random values. The number of values in B is 16 which corresponds to the …

## Plot a line graph Mathematica

I am trying to create the following chart in Mathematica. I would like to somehow generate this based on Ohm's law not just a raw data set. I would like to be able to switch the resistance value …

## Plotting the solution to an equation with Mathematica

I have a function f(x,t) and I'd like to plot the function of the solution x(t) of f(x(t),t)=0 using Mathematica. How can I do it? Mathematica is often quite different to other programming languages …

2 days ago

## how to generate Mathematica code into more-appealing LaTeX code?

Subscript[R, c] (Subscript[m, d] (g+Overscript[y, ¨]) sin(Subscript[\[Alpha], c]+Subscript[\[Theta], 1])+Subscript[k, d] cos(Subscript[\[Alpha], c]+Subscript[\[Theta], 1]) (Subscript[d, c] ...

2 days ago

## Mathematica help ~ converting elements in a matrix to string

I have this 10x10 matrix (or Array) in Mathematica whose elements which have the value -1 or +1. I want to change all the -1 to a string " " (here its just the spacebar) and all the +1's to the symbol …

## How can I calculate the centroid of polygon?

What is the way to calculate the centroid of polygon? I have a concave polygon of 16 points, and I want know the centroid of that. thanks

Mar 6 at 22:46

## Mathematica MLEvaluate() Function Gives Error

I am trying to link my C++ program to Mathematica Kernel. I am trying to use the MLEvaluate() evaluate but I receive an error while compilation. My codes are as below: #include <mathlink.h> ...

## Good definition of function for integration

I have the following problem: I define a function: f[t_]:=(1-Exp[-t])/(1+Exp[-t]) and integrate it by: g[t_]:=Integrate[f[t],t] then when I try to plot it using: Plot[g[t],{t,0,10}] I get a …

Mar 6 at 4:07

## Why does my Mathematica figure not work with PSFrag?

I created an image in Mathematica with some labels that, for some reason, refuse to be substituted when using PSFrag. Specifically, the Mathematica code image = Plot[Sin[x], {x, 0, 2 π}, ...

Mar 6 at 2:01

## mathematica plot with specific color only positive values in ContourPlot3d

I created a Contour3dPlot in mathematica as follows: First I define a function: F(x,y,z) Then I run the following command: ContourPlot3D[F[x, y, z], {x, 0, 1}, {y, 0, 60}, {z, 0, 60}, ...

## Mathematica equations to LaTeX but equation is too long, how to split it?

I am new user of LaTeX. I have a problem of splitting long equation which I generate by Mathematica. I tried to use \\, multiline, and split commands but it gives error. Is there way to export ...

Mar 5 at 23:49

## How do you access ARGV in Mathematica?

I'd like to write command line scripts in Mathematica, but I can't seem to find an Argv[i_Integer] like function. (The docs are FANTASTIC otherwise.)

## Save Plot Options of Mathematica into a single variable

How can I save the numerous Plot options in Mathematica into a single variable

## Mathematica: Expression with function calls to list of arguments

I have an expression like this: expr=F[0, 1] + 2 F[0, 0] - 17*F[2, 0] and i want to transform it to a list consisting of all function calls with its arguments: MyList={F[0, 1], F[0, 0], F[2, 0]} …

Mar 4 at 18:43

## Fourier series for e^x

I'm trying to teach myself partial differential equations from Strauss' book. I have run into a very bizarre problem - I cannot figure out what is the Fourier series of e^x! And not even Google has …

## Mathematica 2d list select

I have a 2D list - 128 rows of 128 elements (this data is setup for ContourPlot). I want to quickly select the items from the groups that are smaller than some epsilon. For instance, using a 3x3 ...

## Wolfram Mathematica - Newton Backward Interpolation?

I have the following task: Create a function (in Wolfram Mathematica), called $\mathrm{NewtonBackward}$[n_,x0_,h_,f_] which interpolates backwards the function $f(x)$ with nodes {x_i = x_0 + ...

## Bifurcation at undefined point

I have a 6d system of dynamic equations. In Mathematica I am able to calculate numerically the steady states and evaluate their local stability. It turns out that everything depends on one parameter, …

## Find the maximum integer such that this algebraic constraint is satisfied in Mathematica

For example, I have an expression as a (arbitrary) function of integer n f[n_]:=10^n*(n^2+4*n) I want to find the maximum integer n such that f[n]<=m for another number m. I could formulate ...

## Reading Data and Returning Outputs in Mathematica Modules

I am new to Mathematica and want to ask perhaps a very simple question :-). I need to read data from an input file and then process it. Due to its repeated use in my code, I make a module. An Example …

Mar 1 at 10:30

## Create matrix and fill it in wolfram

i want to translate my C++ code to wolfram, to improve my calcs. C++ code for(int i = 0; i < N - 1; ++i){ matrix[i][i] += L / 3 * uCoef - duCoef / 2 - (double)du2Coef/L; ...

Feb 28 at 21:35

## Magic Square of n order in wolfram mathematica

please can you help me with creation of function in Wolfram Mathematica for magic square. I must create function MagicSquare[n_], which output is sqare matrix of first n^2 integers, and sum of these …

Feb 28 at 18:13

## manipulating one element in a list in mathematica

I have a list of 200 data points. I want to select one value, and change the data using the manipulate function to create a bad data point, and observe the effects on the graph. My recent attempts …

Feb 27 at 22:42

## Solving an ODE with Mathematica, using Lagrangian mechanics

Question: The velocity of light above a hot surface decreases with the height from that surface. The velocity is given by $v=v_0(\frac{1-y}{\alpha})$ where $y$ is the vertical distance above the ...

## Solve mixed equation in one variable

I have this equation and want to solve it for v. I tried Mathematica but it is not able to do it. Is there any software, language capable of solving it? Equation: Solve[1 + 0.0914642/v^5 - ...

## Solving a nonlinear system of differential equations in MATLAB or Mathematica

Is it possible to solve the system $$\dot{W}=A\left(k-\frac{M}{W}\right)$$ $$\dot{M}=B\left(k-\frac{M}{W}\right)$$ with initial conditions $$W(0)=w_0$$ $$M(0)=m_0$$ in MATLAB or Mathematica? If so, …

## Replacing Mathematica's QuasiMonteCarlo integration in C++

I have a Mathematica program which performs some integrals in 3 or 4 dimensions using the QuasiMonteCarlo method. The problem is, it takes an annoyingly long time to run, to the point where some of …

I know Mathematica like the back of my hand, but I do not know a speck of $\LaTeX$ or $\TeX$. With regards to mathematical typesetting, is there something significant I can do in $\LaTeX$/$\TeX$ that …