1
vote
1answer
21 views

NRoots Results: From Equations to List of Root Values [on hold]

When I use Roots/NRoots, I get a disjunction of conditions as result. The conditions are normally of the type x == value How can I convert this to the list of root values?
0
votes
0answers
11 views

what is wrong with this plotting code?

Heres the question: The region bounded by f(x) = x+2 and g(x) = sin(x) between x = 0 and x = Pi/2 i. Plot the region on the interval [0,Pi/2], between y = 0 and y = 4. ii. Find the area of the ...
1
vote
2answers
32 views

Write list of strings to a file (as lines)?

I have a list of Strings, like: list = {"hello", "world", "other line"}; And I want to write it to a file, so that each item in ...
0
votes
1answer
8 views

Prevent evaluation after ToExpression

How can I produce both typesetting and evaluation of a LaTeX expression? Illustrative example: The evaluation of HoldForm[Sqrt[2.0]] == Sqrt[2.0] looks ok (aside ...
0
votes
0answers
24 views
3
votes
3answers
225 views

How do I split a list of numbers to monotonic sequences?

Suppose I have: list = {1, 2, 4, 5, 7, 11, 8, 7, 3, 1, -3, -2, 6, 7, 80} And I want to split it to: ...
0
votes
0answers
10 views

How to replace a local parameter in Module

I want to replace a local parameter in the Module that has assigned local values. I want to replace a single parameter, for example: $x$ that has a value of $5$: ...
0
votes
0answers
15 views

Change “ListPlot” to 16 bit accuracy?

I have (with the help of this forum) managed to plot a bifurcation diagram with the following code: ...
18
votes
2answers
517 views

Where can I get detailed information on how the Plot command works?

The command Plot[x^2, {x, -3, 3}, PlotStyle -> Arrowheads[{-.025, .025}]] /.Line -> Arrow produces this output. What I don't understand is what ...
3
votes
0answers
27 views

Huge difference after changing a fraction to decimal

I have a limit to calculate. With[{p = 1/2, q = 0.1}, Limit[a^q Integrate[Sin[x]/x^p, {x, a, Infinity}], a -> Infinity]] gives correct result ...
2
votes
2answers
210 views

Extracting RGB color code from a plot

I have let Mathematica to draw a plot of some functions written as below: ...
1
vote
1answer
23 views

Define a 4d matrix without for loop

I was wondering if there is a way to avoid for loop here: I want to define a 4d matrix H(i,j,k,l), and each entry in the matrix is calculated through a complex function, say Do_H(i,j,k,l), depending ...
2
votes
0answers
15 views

FindPeaks error “ Expecting an image or graphics instead of”

I'm running Mathematica 10.3.1.0 on windows 7 Professional Sp.1 when I try to use FindPeaks I keep getting the following error, even when trying the example in the ...
0
votes
1answer
59 views

Why are CoefficientRules and MonomialList so slow?

Why is CoefficientRules so slow in this example (v10.2 on OS X 10.11.4)? ...
0
votes
0answers
13 views

How to derive natural boundary conditions and governing equations by Mathematica

I can derive governing equations of system by Variational Package of Mathematica but it doesn't give boundary conditions. How can i get them? or is there another way (such as another software) to do ...
0
votes
0answers
15 views

NDSolve won't stop running

I'm trying to solve the wave equation with NDSolve, but everytime I hit evaluate notebook it won't stop running. Any insights? ...
1
vote
1answer
47 views
0
votes
0answers
16 views

Time and distance problem

A train starts from Jammu for Srinagar at 13:30 and reaches Srinagar at 17:30. Another train starts from Srinagar at 15:30 and reaches Jammu at 19:00. At what time will the trains meet?. I have ...
1
vote
0answers
51 views

Wrong limit involving sine?

Using Mathematica 9.0.0.0, I was trying to calculate the sum $$ B_n = \sum_{i=1}^n \sin^4\left(\frac{(i-1)}{(n-1)}\cdot\frac{\pi}{2}\right). $$ where I thought it would be $B_n = \frac{3(n-1) + ...
0
votes
0answers
17 views

axis label problem

I have a contourplot with (Greek) omega on the y-axis and Q^2 (GeV^2) on the x-axis. When I do ...
5
votes
3answers
223 views

Partition a disk into regions based on points on a circle

I am plotting the roots of a polynomial on the unite circle this way ...
1
vote
1answer
30 views

Bar chart scale in multi-chart visualisation

This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!). I'm trying to create a chart which shows the smooth kernel distribution of ...
2
votes
1answer
28 views

To embed metadata in a notebook, keeping them both human readable and easily parsable

I' m trying to set up a gizmo to manage the large notebooks collection, in my Mathematica workspace. The main idea is to embed indexing metadata in each notebook and manage them by means of function ...
2
votes
1answer
60 views

Mathematica built-in function that translates number strings to numbers

I recently ran across a function in mathematica that translates "twenty-two" to 22, but I can not remember what it is and my searching through the help functions has yielded nothing. Can anybody help? ...
0
votes
0answers
17 views
0
votes
2answers
29 views

How to find intersection points of linear and semi-logarithmic plots

Hopefully the title depicts what I am trying to do. Below is a figure of my calculations that is shown in logarithmic scale in the x-axis. I am trying to find a way to find the intersection point at ...
1
vote
1answer
46 views

How to convert Image3D object into Graphics3D object and vice versa?

There are some rendering options (for example, Lighting) which are associated with the Graphics3D objects. I cannot apply these ...
1
vote
1answer
34 views

Specify the color of each residue in a protein (PDB)?

I'm importing a .pdb file containing a single protein. Mathematica automatically produces a plot of the protein. I want to specify the color of each residue independently, in this plot. Is this ...
2
votes
0answers
80 views

Integrate producing bad result

I noticed a bug in Mathematica. It computes incorrectly a definite integral ...
0
votes
1answer
62 views

How to find roots using the bisection method

First I plot the function and then I try to find a domain such that I can see the curve cut through the x-axis. I do this via trial and error ...
1
vote
2answers
40 views
4
votes
0answers
30 views

Creating Saveable->False notebooks

I'm having difficulties with programmatic creation of non saveable notebooks. ...
0
votes
0answers
22 views

Extension of the question “Manipulate Slider Value on the Plot”

In the Stack exchange question Manipulate Slider Value on the Plot, the task was to display the value of a parameter. Here was Hector's answer ...
0
votes
0answers
60 views

Why are my associations not consistantly followed? [on hold]

I'm working on a code that automatically reorders the words of a phrase. I'm getting some inconsistencies with the word "glass". EDIT: Sorry for not simplifying the code to a basic example. Here's a ...
0
votes
0answers
40 views

Evaluating interpolating functions embedded in equation [on hold]

I have created an interpolating function v(x,y) that contains an interpolation. When called, it returns an equation that contains embedded interpolating functions. ...
0
votes
3answers
37 views

Can highlight an expression in mathematica in an expansion?

I ask mathematica to make an expansion of some expression. Is there a way to ask mathematica to highlight all terms that, say, goes by x^3 since it is really hard to find them? E.g. ...
2
votes
4answers
102 views

Find the length of the intersection of two lists including duplicates

I have 2 Lists. The first one includes all the numbers from 1 to 10. listA={1,2,3,4,5,6,7,8,9,10} The second includes ...
0
votes
1answer
45 views

Simplify assuming $x$ is small [on hold]

I would like to assume that $x$ is small so that values of the order $x^2$ (and higher orders) are negligible. For example, I would like Mathematica to return $1-2m$ when I ask it to simplify ...
0
votes
0answers
29 views

Is it possible to find the close form solution of following Recurrence relation using Mathematica?

Example 1 F(0,t)=t F(n+1,t)=F(n,2*t) Example 2 F(0,y,t)=t F(n+1,y,t)=F(n,y+1,t*y) When I tried to manually solve above ...
2
votes
1answer
51 views

Output short denominator as pre-factor

How can I make the output print like the input, with the short denominator written as a factor in front of the long expression? I was messing with styles earlier today to do something else, and at ...
3
votes
2answers
295 views

Creating a bifurcation diagram of the logistics map

I am brand new to Mathematica so please keep that in mind. I've run into trouble trying to make a bifurcation diagram. Here is what I have done: I have a function $f(x)$ that relies on a value $r$ ...
4
votes
1answer
38 views

Issues with modeling pulses in a very simple system of DAEs

Some time ago I had asked this question about evaluation difficulties using Euler Integration to solve a system of ODE where discrete pulses occur. While I have now abandoned Euler integration and ...
0
votes
1answer
38 views

4-digit number, where $d_{1000} \lt d_{100} \lt d_{10}\lt d_{1}$ [on hold]

I need to find all 4-digit numbers, where ones-number > tens-number > hundreds-number > thousands-number. 6789 is the highest possible such number and 1234 is the lowest. One solution is to write them ...
6
votes
0answers
41 views

Is it better to completely forget about the existence of PowersRepresentations?

I noticed that in several cases the performance of PowersRepresentations is hugely worse than that of IntegerPartitions. (Mma ...
0
votes
0answers
35 views

What is it with MemberQ? [on hold]

Look at this operation MemberQ[x^3, x^3] (* False *) Is it correct, or a bug?
8
votes
1answer
104 views
+50

How do I use the third and fourth arguments of Parenthesize?

Parenthesize seems to do a good job with constructing boxes that need to be appropriately parenthesized: ...
-4
votes
1answer
26 views

How to write this iterative sequence function in mathematica

The function is Tx=1-x if x∈[0,1/7) =(x+6)/7 if x∈[1/7,1]. I have to write the iterative sequence for n=0,1,2,3,4,5----- where x_{n+1}= ...
1
vote
1answer
30 views

Square bracketed matrices in Mathematica - precision markers?

I'm trying to display Matrices with square brackets in Mathematica. I've found this post from a mailing list in 2009 http://forums.wolfram.com/mathgroup/archive/2009/Aug/msg00458.html and it seems to ...

15 30 50 per page