Mathematica

Mathematica

• All Sites
• All Meta Sites

## Learning Resources: Mathematica Notebooks

A while ago, I stumbled upon someone's list of Mathematica notebooks for learning various topics. I've since lost the link, but I'm wondering now if I could find notebooks again. So my question is: …

## How to solve integral in Mathematica?

I need matrix H. G is working, but H is just derivative?? How to obtain? g = Integrate[x^(p + q - 2*(m + n + 1)), {x, -1, 1}]; h = Integrate[D[x^(p + q - 2*(m + n + 1)), {x, 2}], {x, -1, 1}]; …

10 hours ago

## How do you set the range for ListPlot (mathematica)

I have a large set (about 2050 values) of data that I would like to make a graph out of. The data is in two columns in Excel. I copied the first column and made the list x={0, 3.6, 7.1, 10.7...} and …

## Delete Duplicated Sublists within a List in Mathematica

For instance say, list = {{1, 2}, {3, 1}, {2, 1}, {2, 1}, {1, 1}} I would like it to instead print {{1, 2}, {3, 1}, {2, 1},{ {1, 1}} I have tried DeleteDuplicates[list] and that worked to no ...

## Disk inside plot in mathematica

I have a question about using plot and disk together in one manipulate function in mathematica. I have this piece of code right now: Plot[h[t], {t, 0, ttot}, PlotRange -> {0, 30}] Manipulate[ …

yesterday

## What is the recommended way to check that a list is a list of numbers in argument of a function?

I've been looking at the ways to check arguments of functions. I noticed that MatrixQ takes 2 arguments, the second is a test to apply to each element. But ListQ only takes one argument. (also for …

yesterday

## Exposing Symbols to \$ContextPath

There are a variety of Internalcontext functions that are useful, such as InheritedBlock, Bag and StuffBag, etc., as well as many useful Developer functions. I wish to expose a selection of these …

Dec 7 at 19:28

## Rotate a rectangle around a certain point in canvas

Im trying to rotate a rectangle around the center of its parent rectangle. The child's distance to its parents borders must always stay the same. I almost succeeded but there seems to be a small error …

## Function incomplete when plotting

I just came over a problem while displaying a function. Mathematica doesnt plot the middle of the function: VoigtDistribution[\[Delta]_, \[Sigma]_] = ParameterMixtureDistribution[ ...

Dec 6 at 14:11

## clean up a wolfram response using xpath , in a java program

trying to clean up a response from xpath to get rid of the xml I have it working fine when I declare the string as follows String xml = ...

Dec 6 at 4:53

## How to create vertical Bullet Graphs with PSTricks?

I was looking for a package to create bullet gauge graphs, but I couldn't find any. A good person in this forum show me how he would make it in TikZ, with a little options. I was waiting any moths …

## Sum up numbers from 1 to 100000 after removing zeroes

Ok so i have numbers from 1 to 100000.I need to remove the zeroes from all numbers and sum up numbers from 1 to 100000.So if the number is 405 consider it as 45 , if number if 20039 consider it 239. …

Dec 5 at 16:51

## How to stop Mathematica from giving numerical answer?

I am very new to Mathematica. Everything is a nightmare to me. I am trying to calculate a product Product[((1 - 0.9 z^-1 Power[E, -I k (11 \[Pi])/50]) (1 - 0.9 z^-1 Power[E, I k (11 \[Pi])/50])), …

## Mathematica select elements from list constrained by an analytic function

For some list of 2-d points, e.g. data = {{1, 2}, {3,4}, {3, 6}}, and some analytic function, e.g. f[x] = x^2, I want to select out only those points that lie beneath the curve, i.e., test for ...

Dec 2 at 23:05

## NMinimize is very slow

You are my last hope. In my university there are no people able to answer my question. I've got a function quite complex depending on 6 paramethers a0,a1,a2,b0,b1,b2 that minimize the delta of ...

Dec 2 at 10:17

## What is the algorithm details of Mathematica's FindRoot when “method” is the default Newton?

When solving a three-variate nonlinear system, I tried different implementations: 1) Mathemaitca; (FindRoot, default method) 2) Matlab programming(by using central finite difference to approximate …

## Set::write error when using For loop

Solving a complicated formula f(u,v)==0, where I assign some constant value to u and then solve v. I can solve it without for-loop, but encounter errors by adding For[] enclosing the codes, where …

Dec 2 at 2:36

## How to improve the performance of this code

I have implemented a code in Mathematica 9 to simulate a scattering problem, and I got really disappointed about its performance when compared to Matlab. Since I am a newbie in Mathematica, would ...

## How to construct unequal width histograms with Mathematica?

The 2010 census for Anoka County, Minnesota shows that from a total population of 330844 - 86031 were ages 0 through 17, 26671 were ages 18 through 24, 91927 were ages 25 through 44, 93983 were …

## Mathematica, solving non linear system of equations with lot of equations and variables

I need to find a square matrix A satisfying the equation A.L.A = -17/18A -2(A.L.L + L.A.L + (L.L).A) + 3(A.L + L.A) -4L.L.L + 8L.L - 44/9L + 8/9*(ID) ,where L is a diagonal matrix L = ...

## Mathematica, system of differential equations

I'm trying to run the next code and a series of errors appear. I can´t find any errors on it. The purpose of the code is to plot the solution to a system of differential equations. Please help me find …

Dec 1 at 4:47

## Mathematica for plotting multiple functions

Does anyone know why the following plot function is not plotting all four of the functions simultaneously? Plot[{-(x/3)*(x - e)*(x - Pi)/((3 + e)*(3 + Pi)), ((x + 3)*(x - e)*(x - Pi))/(3*e*Pi), ...

Dec 1 at 3:47

## Coupled non-linear second order PDE in Mathematica

I've been trying to solve this equation on Mathematica, to no avail up to now Btheta[x_,t_] := (-2 A/Ms*Sin[theta[x, t]]*Cos[theta[x, t]]*(D[phi[x, t], x])^2 - 2 Ku/Ms*Sin[theta[x, ...

## Why the lower limit of this integral is 1?

I solve this differential equation using Mathematica. But I don't understand the solution. Why the lower limit of this integral is 1? I run: $$\text{DSolve}\left[y'(x)+y(x)=Q(x),y(x),x\right]$$ the …

## Understanding solution to differential equation in Mathematica

I got a solution using DSolve as : Function[{t}, -(( 1. (2. + k (-1. - 2. t) + k^2 (-0.5 + 1. t + 1. t^2)))/k^3) + E^(-1. k t) C[1]] What does '.' mean and '()'? For example, in the case of …

## compressing HDF5 files in Mathematica

I am working with Mathematica 9 and exporting huge lists (a typical list will have dimensions of 182500,4,8,42). Each file has about 6 lists of this size (all integers, not sure if this makes a ...

## Levenshtein Distance with Mathematica

I try to code Levenshtein Distance with Mathematica but the recursive part doesn't seems to work, can someone tell me why ? distanceLevenshtein[chaine1_, length1_, chaine2_, length2_] := ...

## 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 …

## Photo Mosaic in Mathematica: an example from 2008 doesn't work in Mathematica 9

I'm trying to get a Mathematica example working. It's the one on Theo Gray's blog. In Mathematica 9.0 It doesn't work. I already have search the answer on stackoverflow in mathematica 8.0 . I use the …

Nov 27 at 2:03