All Questions

4answers
117 views

ListPlot and filling between curves

I have a simple question. Why is Filling not working in the following? ...
1answer
43 views

Using patterns to modify TeXForm output

When I use TeXForm on a matrix I often want to replace some the output with some number of verticle and horizontal lines. Is there a way to get control over this, possibly using patterns? As an ...
0answers
73 views

I am using ...
2answers
400 views

How to speed up Colorize

I have a list of about 500 images similar to the following: A = Import["http://i.stack.imgur.com/1bV4O.png"] ...
1answer
92 views

Roots of Whittaker W function

I am interested in finding the roots $u$ of the equation $$W_{1,\imath b}(a)=0,$$ where $W_{\kappa,\mu}(z)$ denotes the Whittaker $W$ function, $a>0$ is a fixed parameter, $\imath=\sqrt{-1}$ and ...
0answers
29 views

Set precision on output dataset [on hold]

How do I set the output precision such that if a value is calculated to be e.g. 9.7942*10^-18, Mathematica doesn't output that value, but it just outputs $0$ instead. I tried ...
0answers
70 views

NDSolve and assuming

I am trying to solve the system of PDE with NDSolve and I got an error message like this NDSolve::deqn: "Equation or list of equations expected instead of ...
1answer
65 views

Scaling vectors in an animated vector field [duplicate]

I want to animate a VectorPlot3D. But, Mathematica rescales the vectors in every frame. Can you scale them all to one fix point? For example, scale the vectors on ...
2answers
205 views

Why does Mathematica say $\int_0^1\int_0^1\int_0^1\frac{1.0}{xyz}\,dz\,dy\,dx=0$?

Mathematica 9 says that $\int_0^1\int_0^1\int_0^1\frac{1.0}{xyz}\,dz\,dy\,dx=0$ and $\int_0^1\int_0^1\int_0^1\frac{1}{xyz}\,dz\,dy\,dx=0$. ...
0answers
28 views

Expected value of exponential random variable [migrated]

If an exponential random variable, X, has failure rate λ, what is E[X|X<λ]? I'm not sure how to start here. I know that E[X] = 1 / λ for an exponential random variable. Is the probability that X ...
0answers
34 views

Boolean function conversion to operators(AND,NEGATION) [on hold]

Given some boolean fuction f, how can i convert it into an expression that has only the operators: && and Negation.
1answer
42 views

When plot a list, how to Manipulate a sequence of defined functions at the same time?

I am trying to plot a sequence of functions, for example{(a+b)^i},{i,1,100}. All the expressions I have stored in the list. Now I want to plot them and see how their value would change if I change ...
1answer
45 views

Unexpected behavior of WhenEvent in NDSolve?

In Mathematica 9.0.1, here is a simple code to numerically solve an initial-value problem: ...
0answers
28 views

Recursion with an exception [duplicate]

I need to print the first 7 members of the sequence a[n] with its reccurence formula a[n+1]=7*a[n]+n, where a[1]=1 and the digit 7 dosnt occur.
1answer
148 views

Finding peaks of data

I want to find peaks in my data. My code in a reduced form so far: ...
1answer
46 views

Problem with 'time dependent' functions [on hold]

I'm just trying to make $\frac{dx}{dt}$ where $x= \rho \cos\theta \sin\phi$ where $\theta, \phi$ and $\rho$ are time dependent functions. ...
0answers
50 views

Which method to use for finding maximum without actually computing optimization function explicitly?

I am new to Mathematica and I am currently working on an optimization problem. The optimization function that I have easy to calculate for some assignment of variable but it is very difficult to ...
3answers
70 views

Minimizing Multiple Functions

I'm trying to write a script that will minimize a given set of functions. The homework problem I've been given lists a set of dietary information, and I'm supposed to build the optimal salad based on ...
1answer
52 views

Permutation with a condition [duplicate]

I need to create a set A={“a”, “b”, “c”, “d” “e”} and print all the permutations of the set with lenght 3 that satisfy the condition:element "a" has to be ahead of "c" and "d" has to occur atleas ...
1answer
56 views

Problem using NDSolveValue

Good afternoon, fellas. Could anyone here help me solve this problem? ...
0answers
29 views

Simplification with absolute value

I have a long expression that has absolute values in the exponent. Some parts of the expression would clearly simplify if one assumes that the power is an odd or even integer. When I give one of this ...
1answer
59 views

How to shorten/simplify my plotting code

Is there a way to simplify and shorten my code? ...
0answers
87 views

Plotting a numerical integration

I have the following code to calculate a numerical integral for any given a: ...
1answer
39 views

InfiniteLine Woes [on hold]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
0answers
38 views

Solve an integral equation: to fit the given data with an integral of two functions?

I am trying to find an efficient way to solve the following equation $$h\left(b\right)=\int_{0}^{b}f\left(\frac{b-c}{1-c}\right)\frac{g\left(c\right)}{1-c}dc$$ where for $h(b)$ I have the data ...
0answers
43 views

How can I make rows into columns? [on hold]

I want create new columns and rows from the following list of data using Mathematica: {{11, 12, 13}, {21, 22, 23}, {31, 32, 33}} I want the new for be like this: ...
1answer
156 views

I want to construct a function than the output is “Sequence”

For example if the input is x and x<10 the output is Sequence[x,0],if x>10 the output is Sequence[0,x] but obviously ...
1answer
47 views

Problem with plotting data (.csv)

I have a problem with plotting the data of a recent experiment. I'm quite new to Mathematica, but searched the documentation and forums without solving my issue. My data is stored in a .csv document, ...
1answer
58 views

Module whose input is a function of 2 variables [on hold]

I need to make a Module whose input is a function of 2 variables and 2 variables m,n so i can make a Matrix with Array. Basicaly, I need this: ...
0answers
75 views

Finding the numerical solution to a polynomial of a high degree [on hold]

I would like to numerically solve the following equation for ρ and use the obtained values of ρ to calculate the values of VR ...
2answers
68 views

Plot ParametricNDSolve

I am trying to plot the probability of a molecule being in a certain state via the numerical solution of the Schrödinger's equation of molecule in an oscillating electric field (in a rotating system). ...
0answers
37 views

How to find points of the external cut of a segment by a nonconvex polyhedron [on hold]

It gives me empty {} when I'm trying to Solve[..]. What's wrong? ...
1answer
86 views

Equation solution using minimization

I have an equation F[x,y]=0. I need to plot y as a function of x. Due to the properties of ...
1answer
181 views

Find exponential generating function from the first few terms

The function FindGeneratingFunction computes the ordinary generating function of a sequence, given a sufficient number of initial terms. I have two questions in ...
0answers
22 views

To make a list from a For Loop [duplicate]

I have been working on a for loop and generating around 2500 integers from that. Now I am interested in calculating the Max or Min of those numbers. How to create the list of those numbers? So that ...
0answers
43 views

Reordering numerically calculated eigenvalues assuming smooth dependence on a parameter

As was discussed in a different question here on SE (link) if you compute eigenvalues numerically of a matrix which depends on a parameter y, the resulting plot of ...
0answers
26 views

Structure of the output of a DynamicModule [on hold]

I have a DynamicModule function which is used in a recursive function built with patterns. In order to understand how the recursive function works, I need to know ...
4answers
142 views

How to eliminate variables when using Solve[]

In certain problems, we need to solve systems of equations and get results in terms of just selected variables. For example, how could we solve eqn==0 below for ...
1answer
64 views

Are there any open source projects related to signal processing

I am going to make a program related to audio signal processing . Are there any open source projects related to it?
1answer
227 views

Compiling a function that takes lots of optional arguments

I have a function that takes lots of optional arguments (basically some design parameters, about 10 of them) and performs some basic algebraic calculations involving complex numbers with the options. ...
0answers
40 views

Multidimensional integration does not work

I am trying to solve an integral over Cubic Birillioun Zone, but after taking a long time Mathematica give nothing in return and just repeating the integral form, here is my integral, ...
0answers
42 views

How to calculate frequency from waveform? [closed]

How to calculate frequency from waveform in mathematica??? Voltage waveform is shown below. ...
0answers
30 views

How to draw a revolute joint and Prismatic joint? [closed]

and I want to add a bar on the surface of the blue cubiod so that I can move the joint with the bar. Also it's best to add a function code(a code to describe how it moves)
1answer
196 views

Why is Block significantly faster than ReplaceAll for inputting variable values

Given that the documentation for FindMinimum uses ReplaceAll for its various examples of what to do with the found solution to ...
0answers
48 views

How can I fit the parameters describing a given 3D object such that its projected shape best matches the silhouette observed from a given location?

[I'm reposing my previous question to make it clearer]. I have data which are the longitudes (l) and latitudes (b) for the vertices of the edges of a shape as it appears to an observer at a given ...
0answers
35 views

Handling *.in and *.out files

im trying to use Mathematica in solving of algorithm tasks like this one: http://poj.org/problem?id=1274 When i was doing those in c/c++ i was able to easily pass input/output in Windows command line ...
0answers
56 views

Optimizing orthogonal nonlinear regression code

I'm doing a simulation problem on the Langmuir adsorption model, where I need to obtain the model parameters from simulated data using the orthogonal nonlinear least-squares regression method. Here is ...
1answer
87 views

How can I run a summation numerous times?

I have been working on code for finding the Allan plot of generated white noise, however, I cannot figure out a way to automate it for a different range of numbers. My code is as follows: ...
4answers
86 views

How find constant term of quadratic with square already completed?

Suppose I have a quadratic polynomial in two variables x and y in which the squares with respect to ...
1answer
22 views

Print to console bis

In the answer to this question, one explains how to use a function PrintToConsole[...] to print output to the console. My question: can you make a global definition that will automatically ...

15 30 50 per page