# All Questions

44 views

### Missing definition of some parts of function?

I have: BeginPackage["Test1"]; ClearAll[f]; f::usage = ""; Begin["Private`"]; f[x_AA]:= 1; f[x_BB]:= 2; End[]; EndPackage[]; When later, on a notebook, after ...
71 views

### How do I find the constant term of a multivariate polynomial, when (x^0)(y^0)?

So let's say f[x_,y_]:=(2x+2y+1)^2, when I type Coefficient[f[x,y],x y] I recieve 8. But what can I input to recieve 1, when ...
58 views

### Adding a 3D point using Epilog [on hold]

I am trying to add a point using the Epilog option with ContourPlot3D. ...
48 views

### Fitting data to plot using errors as weights

I have some enzyme kinetics data that I want to fit to the Michaelis-Menten curve in order to obtain the kinetic parameters of the enzyme. Is it meaningful, statistically and functionally speaking, ...
47 views

### n dimension vector expression in mathematica

I have a question about how to write the formula in Mathematica. If $w$ is $n$-dimensional vector, with each element as $w_i : i=1,2,3,...n$ and $n$ is symbol, how to write it as vector in ...
36 views

### i need generalized code for genetic algorithm(an optimization technique)? [on hold]

I'm working on GA coding to optimize the locators position in fixturing system to minimize the error in precision manufacturing.I need generalize code for GA (including random population ...
82 views

### Minimize method is not giving minimum. Why?

I was doing an optimization but facing a problem getting what exactly Minimize function do. I run the following code: ...
16 views

### How many workers each company have? [on hold]

If total there are 90 workers between 2 companies and one company have 16 more workers then the other. How many each company have?
72 views

### How to speed or help Solve[] when it is stuck?

The code below generates a system of equations that I need to Solve[] for {c[5], c[6], c[7], c[8]} in terms of {c[1], c[2], c[3], c[4]}. ...
20 views

### About Manipulate : How to make this work properly?

Manipulate[ Plot[PDF[NormalDistribution[mu, sigma], x], {x, -4*sigma, 4*sigma}], {mu, -10, 10}, {sigma, 0, 10} ] I got the following error:
189 views

### Built-in symbols that support operator form

In version 10 some built-in symbols are updated to support operator form like the Derivative. For example, Select, ...
41 views

### Pulling the boundaries from a Solidworks Profile in Mathematica

I'm currently trying to take a 2d profile generated in SolidWorks and use mathematica to analyze it. I need to pull lines that represent the boundaries of the shape from an image of the shape. . My ...
22 views

### PredictorInformation[] doesn't show linear regression coefficients when model has more than 101 features

I need to train a Predictor[] where both features and outcomes are (arrays of) binary variables. (e.g. {{0,1,0,0,0,1}->1, {0,1,0,0,0,0}->0}) For some reason when I train the Predictor[] using a ...
33 views

### Drop elements in Permutations [duplicate]

I have a problem with one excersise. I have a set of {x,y,z,w,u,t}. Then i want to print all possible permutations of the set with length 3 that commits this condition: element "u" not to occur after ...
105 views

### Making ReplaceAll faster

I have a list of functions ncalc that is calculated by ...
115 views

### definite integration very slow

I have to perform definite integration of function of this kind : ...
57 views

### Power::infy: “Infinite expression 1/0. encountered” (ODE Solution using NDSolve)

While solving the following ode, Eq1 = f'''[x] - f'[x]*f'[x] + f[x]*f''[x] - K1*(2 f'[x]* f'''[x] - f[x]* f''''[x] - f''[x]*f''[x]) - f'[x] == 0 with the ...
44 views

### FullSimplify cascades too much/groups variables too eagerly

This is something FullSimplify will give: $$\frac{n (s+\text{s2})-\text{a1} g}{\text{a1} (g-\text{a2} s)+s (s+\text{s1}) (s+\text{s2})}$$ I could find better examples where FullSimplify cascades ...
105 views

### make trace of a matrix listable?

I have a list of 2 by 2 matrices and I want the list of their traces. I have been using Map[Tr,mylistofmatrices] But I wonder if there is a way to make ...
38 views

### NSolve Duration for simultaneous equations solving

At the moment I am asking myself why mathematica gets to point of needing enormous amount of time to solve equations like these when one more "row" or "colum" or both was added in this equations ...
35 views

### Dynamic locator missing when image change

I plan to get corner coordinate of desired image dynamically through LocatorPane[Dynamic[pt],back]. However, I notice that locator on right hand side was ...
59 views

### LogisticSigmoid residue bug?

On version 10.0 for arm: Residue[LogisticSigmoid[z],{z,I Pi}] gives 0 not 1. Can anyone reproduce this?
41 views

### system of nonlinear partial differential-algebraic equation [on hold]

I want to solve 2 coupled partial differential algebraic equations. Below is my program. I am not able to find the solution. Please help for the same. ...
17 views

### How to use PageBreakPalette?

I would like to use PageBreakPallete from http://library.wolfram.com/infocenter/TechNotes/4094/ I did Palettes->Install Palette.. and then in Palettes I have PageBreakPallete. There show Palettes ...
39 views

### Table of sections with CellPrint

I am trying to produce a table of sections with each section containing a DynamicModule. My two questions are: (1) How do I produce grouped sections that are folded ...
69 views

### Why different output is obtained for the same code (Mathematica 10.1)?

I wrote some code in Mathematica: ...
40 views

### Fast construction and reshaping of large tensors

I'm trying to construct a large matrix which is derived from some higher rank tensor (the rank of interest to me changes case by case, so it needs to be a general method). Currently, the process of ...
27 views

### Errormessage Set::setps [on hold]

I want to plot some data with ErrorBars. The following code generates the desired image: ...
25 views

### How to change size of whole input?

I would like to change size of font of input/output. I see that I can just click on options of single input and set size, but I don't want to do this separately for every line. Could someone help me ...
147 views

### How to speed up a symbolic integration

I have a question about an integral. I wanna integrate this: ...
38 views

### CharacteristicPolynomial returns 0

I have the following matrix. ...
40 views

### Pattern matching & simple replacement

I have a question about an expression that I want to modify. Here is the expression: ...
321 views

### Does the equation have two roots? [on hold]

I want to solve the equation $$-x^2+\sqrt{2-x^2} \left(x^2+2 x-1\right)+2 x+5=0.$$ I tried ...
43 views

### How can I plot bollinger bands on financial time series? [on hold]

I can't find any options for this in CandlestickChart[], but it's a pretty basic measure, is it not supported?
53 views

### Finding the points where the derivative is zero [on hold]

I want to find points where the derivative of a function is zero. Therefore, I discretize the waveform (vbusa) and have substituted time and voltage values into the ...
94 views

### Solve for x given an interpolation function, y

Given a list of data, lst={{x1,y2},{x2,y2},...,{xn,yn}} and the interpolation function fun, y=Interpolation[lst] which ...
111 views

### ListPlot and filling between curves

I have a simple question. Why is Filling not working in the following? ...
41 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 ...
67 views

I am using ...
396 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"] ...
90 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 ...
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 ...
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 ...
61 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 ...
200 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$. ...
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 ...
28 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.
40 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 ...