# All Questions

0answers
33 views

### What means the definition F[t_?NumericQ] :=…? [duplicate]

I've come along a function defined in this way: F[t_?NumericQ] := NDSolve[{-u''[x] - u[x]/x == -t^2 u[x], u[x0] == x0, u'[x0] == 1}, u, {x, x0, x1}] What does ...
1answer
86 views

### reading data, one number at a time, from file to be used in a formula

First off let me say that I am a total nube. I saw some examples of answers "close" to my question but I did not understand them :-( I want to read individual numbers in from a text file and have ...
3answers
96 views

### How can I write a do loop as a table?

I have a do loop that looks like this: Do[a = -1; b = 1; c = n; d = a + b + c; Print[d], {n, 1, 12}] which gives the output: 1 2 3 4 5 ...
1answer
153 views

### OutputResponse and RecurrenceFilter failure in WM10 with increased precision datasets

Suppose I import sound from file into data list, like this: (Set file name and path) nFileName = "p:\\TrueOscill250HzLongNoHiss128kSps.wav"; (Importing ...
1answer
135 views

### Recursive definition of nested sums

I have a set of functions which take lists as arguments. They recursively nest sums, and I have defined them as follows ...
3answers
404 views

### How can I make an linear breakdown chart similar to those seen on iCloud? [duplicate]

How can I make a interval breakdown chart like this: Update: I checked BarChart and Gauge they do not have this capacity.
2answers
114 views

### VectorFieldPlot Assumptions - restricted domain

I would like to plot the 2-D vector field: VectorFieldPlot[{ x/Sqrt[x^2 + y^2], y/Sqrt[x^2 + y^2]}, {x, -5, 5}, {y, -5, 5} ] but I encounter zero division at ...
3answers
341 views

### Graph Coloring based on neighboring vertices? Cellular Automata

I would like to apply a majority rule cellular automata to graphs. Specifically, I would like to take a graph as input, and then define two functions, InitialColoring[graph] and MajorityRule[graph]. ...
1answer
109 views

### Module does not remove a function definition

The following is a minor variant of the function uniqueTuples as given by Simon Woods in this answer. ...
1answer
89 views

...
2answers
68 views

### Failed to use N[%] for a infinite series

I am trying to evaluate a infinite series: $$2 \sum _{l=1}^{\infty } \Re\left(n^{\frac{2 i \pi l}{\log (q)}} \Gamma \left(\alpha -\frac{2 i l \pi }{\log (q)}\right)\right)$$ With the code: ...
1answer
84 views

### Converting path list to the nested list

I'm trying to convert the plain path list to the nested tree list like the following codes. ...
1answer
83 views

...
3answers
291 views

### Use map on a different level

I have just started to get used to Mathematica's Map, Apply, and related functions, and I can't figure out how to do maps that require working "one level down". For example, I am currently trying to ...
2answers
100 views

### Saving a plot as a pdf to use in Latex

I use the following code: sol = DSolveValue[{y'[t] == 1/(2 y[t] + 3), y[0] == 1}, y, t]; Plot[sol[t], {t, -10, 10}, ImageSize -> Small] Then I Ctrl+click the ...
3answers
236 views

2answers
472 views

### Force a negative square root to be interpreted as an I

I have expressions like $$\sqrt{-\sqrt{1+x^2}}$$ how can I force mathematica to systematically rewrite this as $$i(1+x^2)^{1/4} \quad ?$$
1answer
332 views

### Is there a built-in function to do binary search?

Is there a built-in function to do binary search? Say, given a list (sorted) and a number, find the position which keeps the listed sorted when the number is inserted. I know that ...
3answers
166 views

### Differential equation with a Heavisidetheta function running for ever

So I'm trying to get the solution of the following differential equation: ...
0answers
36 views

### Can't Load .rst file

I've been working with the FeynRules 2.1 package in Mathematica 10. If I download the MC4BSM_2012 FeynRules files and run the Mathematica Notebook I've got no problem in Ubuntu (A lot of warnings ...
1answer
92 views

### NDSolve not able to solve a system of differential equations

Here are some basic equations ...
1answer
93 views

### How to simulate Placed in workaround for PlotLegends ParametricPlot bug?

I'd like Legended output for call like: ...
1answer
263 views

### how to find curve fitting parameters without an explicit relation between x and y?

Let's say I have some experimental data (x,y) and I want to find some fitting parameters. But in my mathematical model, the fitting parameter are not in a simple equation that relates x and y. For ...
1answer
210 views

### Logic Gates - How to show eight ways an AND function can be realized using negative and postivie logic [closed]

I am asked to use negative and positive logic (using bubbles on the gates) to show eight ways that an AND function can be realized. Im not too sure how to do this. The only way I can create an AND ...
1answer
78 views

...
1answer
105 views

### Overlap an image in real time

I made a real-time face detector with Mathematica, and I want to put an image where it detects the face. Here is my code: ...
1answer
235 views

### Select From List of Nested Associations

I have an association: ...
0answers
130 views

### Code turns dark blue after trying to run it [closed]

I have a large amount of data in my N-Body Code. I imagine Mathematica doesn't really like this, but is there any other reason for my code turning a navy blue colour after I try to run it?
1answer
185 views

...
2answers
404 views

### Solving a second order non-linear differential equation

I am trying to solve the following equation DSolve[{u''[t] + 4 u[t] + 0.1 u[t]^3 u'[t] ^2 == 0, u[0] == 1, u'[0] == 1}, u, t] Unfortunately Mathematica is ...
0answers
57 views

### How to Insert Page Break at end of Repeating Block with “Evaluate and Delete”?

This is with version 10.0.2 I have simple notebook template to generate some bingo cards. I would like to have them print two to a page. However, no matter what I do with the page break it will not ...
2answers
239 views

### Discretizing regions with pointy boundaries

I'm trying to discretize a region with "pointy" boundaries to study dielectric breaking on electrodes with pointy surfaces. So far I've tried 3 types of boundaries, but the meshing functions stall ...
2answers
638 views

### How to save all notebook outputs as pdf file

I have produced a lot of graphs and tables in my notebook. I am trying to save all these outputs as pdf file. As we know form Rodney and form Mr. Wizard , we can not use save as function. I have ...
3answers
510 views

### Label multiple edges between same vertices

I have a simple graph with multiple edges between two vertices, say: Graph[{ Labeled[a -> b, "A"], Labeled[a -> b, "B"] }] Unfortunately, Mathematica ...
1answer
311 views

### Filling to Axis as Arrow

In version 9 I could do the following with the output as shown. ...

15 30 50 per page