All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
56 views

Cells[] ignoring multiple style cells

Bug introduced in V9 and fixed in V11 Same story as in NotebookImport ignoring multiple style cells, ...
1
vote
2answers
1k views

Probability density histogram with unequal bin widths

I am confused by output of Histogram and HistogramList for probability density ("PDF") when ...
1
vote
1answer
167 views

Images in package Not visible

I want to make a package where some variables are initialized to images. but when i save the package, all images are in the form of ImageData that are very long. ...
1
vote
1answer
221 views

Count intersections of two non-polynomial functions [duplicate]

I have two Bessel functions, and I need to be able to count the number of intersections if both functions are plotted dependent upon the same variable. I can use FindRoot or FindInstance to get one ...
1
vote
2answers
253 views

Having problems integrating a function of a complex variable [closed]

I've tried to calculate the integral And I got the result $16i \pi ^3$. I wanted to check my calculation, so I ran this code in Mathematica: ...
1
vote
1answer
87 views

How to modify the output result of an evaluation

For ease of notation, I have defined a function, $f$, that defines the permutation of Bosonic particles such that it has the following properties (the form of $f$ is irrelavent for this question): $\...
1
vote
1answer
106 views
1
vote
1answer
118 views

How to bound a recursive Derivative definition?

I need to convert derivatives of g[x,v] wrt v into derivatives wrt x using this relation: $$\frac{dg[x,v]}{dv}=\frac{1}{2}\frac{d^{2}g}{dx^{2}}+\frac{1}{2}\left(\frac{dg}{dx}\right)^{2}$$ This code ...
1
vote
1answer
288 views

How can Time be made to go backwards?

I would like to make a countdown timer, but cannot find a reliable method to make the DateList[] function reverse. The not so robust code for the Digital Clock with the display of seconds follows: ...
1
vote
1answer
132 views

How to Reap data from a ScheduledTask?

Here is an amusing little function mapped over a range just to iterate it. It ignores its argument and works entirely by side-effecting a global variable: ...
1
vote
2answers
105 views

How can I solve iteratively for $\Sigma(r)$, T(r) and h(r)?

My naive attempt: ...
1
vote
3answers
693 views

Rotation of a cylinder around its vertical axis [closed]

I want that that cylinder plotted by RevolutionPlot3D[{Sin[t], Cos[t], u}, {t, 0, 2 Pi}, {u, -10, 0.02}] to rotate around its vertical axis. If possible I want ...
1
vote
0answers
79 views

3D input in EdgeDetect giving 2D output

I am trying to use the EdgeDetect function to determine the edges in my 3D figure. I have successfully done this with 3D figures created by an Image3D function. I now have a figure created by ...
1
vote
1answer
96 views

Nominal Variables in NonlinearModelFit

How do i specify NominalVariables in NonlinearModelFit there doesn't seem to be a parameter for this like in the case of ...
1
vote
3answers
272 views

Solve of cubic and quartic equations too slow

In my problem I have a third order algebraic equation for the variable sigma, all other letters are parameters. Here is it's right-hand side, left hand side is ...
1
vote
2answers
126 views

How can I use the option PlotStyle to start plotting with second color in standard color rotation?

I would like to plot several functions in one plot and start the standard color rotation (ColorData[97, "ColorList"] // InputForm) from the second color and go on ...
1
vote
1answer
87 views

Help to extend this evaluation!

I'm performing a stochastic evaluation, where i'm interested in the assymptotic behavior of the solutions, but my computer can't stand very large times. So I thought that I could evaluate a certain ...
1
vote
1answer
122 views

Table shifting bug?

I use Mathematica for calculation of coordinates in format {x[t], y[t]}. For this purpose, I wrote Module T...
1
vote
2answers
97 views

Surprising error message from NIntegrate

I have the following integral: ...
1
vote
2answers
644 views

Trying to create a Gain (Bode) plot

I am trying to get this code to work and I can't seem to figure out what's going on. I realize that "simple" syntax problems are frowned on here but to us noobs they are NOT simple. (and the ...
1
vote
0answers
83 views

Align a plot with other rotated plot [duplicate]

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
1
vote
2answers
259 views

What's wrong with my graph input?

So I saw this picture on my book and it was left as an exercise to figure out. This is what I have so far, but I'm not sure where I went wrong. ...
1
vote
1answer
2k views

Extract attribute data from an XMLElement

I'm trying to come to grips with parsing an XML file but I'm having difficulty working out how to extract specific attribute data from an XMLElement. Sample XML file below: ...
1
vote
1answer
123 views

Solving a diffusion-reaction ODE with NDSolve

I'm working on solving an equation to estimate production in a spherical catalyst pellet. A working example is given below: ...
1
vote
1answer
491 views

Using StreamPlot and Manipulate to show the field lines with varying the parameters

I have the equation $$\dot{x}=F(x(t);\mu,\lambda)=\mu x-\lambda x^2+3$$ and I want to use StreamPlot and Manipulate to vary $\...
1
vote
2answers
320 views

Plotting amplitude spectra of modulated message signal

I'm trying to plot the amplitude spectrum of the modulated message signal, I have managed to plot it by working through the maths, expanding out each trig function, and then drawing onto a graph ...
1
vote
1answer
373 views

Piecewise function on boundary condition

Consider this initial-boundary-value problem: $$\frac{\partial u}{\partial t}=\frac{\partial^2u}{\partial x^2}+\frac{\partial^2u}{\partial y^2},\quad \Omega=(0,1)\times(0,1),\quad t>0.$$ $$u(x,0,t)=...
1
vote
2answers
332 views

Find NullSpace of a very sparse symbolic matrix

Below is a matrix diagram, produced in Mathematica. In this case it's a $956\times 950$ rectangular matrix. The white parts are all zero. ...
1
vote
1answer
153 views

Why does it matter at what point I replace?

I need to find four orthogonal linear combinations of complicated functions, that vanish at four different points. I use (LK4 is defined below, but its shape should have nothing to do with my problem)...
1
vote
1answer
159 views

How to make the result of Piecewise be a closed interval?

Description This question comes from two questions. Namely Q1 and Q2 The defintion of B-Spline basis function as shown below: Let $\vec{U}=\{u_0,u_1,\ldots,u_m\}$ a nondecreasing sequence of real ...
1
vote
2answers
159 views

How to loop over a varible while plotting a function

Suppose three functions : k1[s_, d_,m_] := 3 s + 5 d + m k2[s_, d_] := 5 s - 7 d k3[s_, d_,m_] := s + d - m How to add the following code to plot conditional <...
1
vote
1answer
568 views

Define a Recurrence Table involving other tables

I'm relatively new to using Mathematica. Previously I used Matlab, but lately I noticed that the numbers i got in both of them do not match (mostly it seems that Matlab lacks precision...). The ...
1
vote
1answer
2k views

Why doesn't my Manipulate work?

I am new to Mathematica and reading my way through a few books. Playing around with Manipulate and I noticed the following does not work: ...
1
vote
1answer
88 views

Evaluating Residue at pole with different forms

I want to evaluate residues at the poles of the function $\frac{1}{z^{3/2}+r^{3/2}}$ fun = 1/ (z^(3/2) + r^(3/2)); where z ...
1
vote
2answers
223 views

Error Resulting from Placing a Dynamic Variable inside of Table

I want to create a list of values, True or False, and to update those values with a Checkbox....
1
vote
2answers
182 views

How to extract matrix which produces given symbolic linear combinations?

Suppose I have a column matrix $\alpha$, consisting of some symbols ...
1
vote
2answers
809 views

How to change the axis on this ListPlot?

My bifurcation diagram almost works, but I can't figure out how to replace the point number on the horizontal axis with the x coordinate from my calculation. I have tried a whole bunch of things that ...
1
vote
1answer
65 views

Out labels looks strange after turning on magnification [duplicate]

As everything in Mathematica looks too small to me, so I turned on magnification when I am working. It looks good on windows: However, the Out tag is dislocated ...
1
vote
2answers
342 views

Extract data from DateListPlot, limited by PlotRange

Extracting the points from a line in a ListPlot in this answer uses points = Cases[Normal@plot, Line[pts_] :> pts, Infinity]; This works in DateListPlot (...
1
vote
0answers
45 views

DensityPlot, ScalingFunctions, and small values

Edit: I figured out I can use Rescale to retrieve the plot as well as get the correct plot legend. I still can't figure out how to rescale the axes from 10^-9 to 1 ...
1
vote
1answer
475 views

How could I define function with function such as Coefficient? [duplicate]

For example, I have eq1=ax+by+cz; and then I want to define new function, $eq2$, as eq2[x_]:=Coefficient[eq1,a]; eq2 ...
1
vote
0answers
213 views

Compute second functional derivative with VariationalD?

I have problems to compute the second functional derivative of a general function. The following lines generate the first derivative: ...
1
vote
1answer
494 views

Plotting a best fit line for listloglogplot data

After playing around with calculating the Overlapping Allan Deviation for my research project (and with much help from this community), I have finally resolved a correct listloglogplot for simulated ...
1
vote
2answers
184 views

Mathematica code in fortran [closed]

I have an integral in which the integrand is a combination of ratio of modified bessel function of second kind. I am able to find the solution of this integral with mathematica Nintegrate module with ...
1
vote
0answers
497 views

No response from DSolve

Using optimal control theory, I am trying to find the optimal paths of d and k such that they will maximize profit as given by lc: ...
1
vote
1answer
206 views

Improving strategy to solve this constrained root-finding problem

I am looking for roots of the function eqs defined below. It has $2k$ unknowns and returns a vector of $2k-1$ components. The sole purpose of the following block ...
1
vote
2answers
116 views

Setting a relative directory

I'm having trouble with SetDirectory. Practically, I need to get the following code working: ...
1
vote
4answers
286 views

Find all disjoint subsets of equal length

Suppose that $A$ is a list with $n$ elements where $n$ is even. I want to write a function that returns all pairs $(A_1,A_2)$ where the sets $A_1$ and $A_2$ each have length $\frac{n}{2}$, $A_1 \cap ...
0
votes
2answers
110 views

Is this TransformedDistribution beyond Mathematica?

Creating the following transformed distribution $A$ A = TransformedDistribution[Sqrt[x^2], x \[Distributed] NormalDistribution[\[Mu], \[Sigma]]] and then using A ...
0
votes
0answers
161 views

Using Control Objects with TabView [duplicate]

I have a number of different tabs on my 'dashboard'. Each tab has a few different Controls (drop down boxes) that the user makes selections with. These selections determine what is displayed on the ...

15 30 50 per page