# All Questions

6 views

### How to save all variables in the workspace into a file?

I did some time consuming computation and obtained a lot of arrays and variables; however after restart the Mathematica Kernel, all these computational results disappeared. How can I save all these ...
35k views

### Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
34 views

### How to apply GraphLayout option to part of vertex?

I'm trying to sketch polymers. Here is how I do it. How can I make the left part to a hexagon? This is the unit so for polymers there are more. Is there a general way to do so?
47 views

### Discrete inequality plotting

I have an equation like this: $${20 \choose k}\cdot \sum_{i=0}^k {k \choose i}\cdot i \leq 1+f$$. I want to plot this inequality as the dependency between k and ...
18 views

### Real-Life Application Linear Equation [migrated]

Robot Moe is assembling memory cards for computers. At 9:00 am, 52 cards had been assembled. At 11:00 am, a total of 98 had been made. Assuming the production rate is linear. a. Find the slope of ...
68 views

### Plotting equations of motion of a baseball

So I went through the physics of a baseball and I got the exact same equations as shown here on page 8. I input all of the same perameters into my code, and I do not get the same thing. Any idea ...
28 views

### Combining Two Manipulated Plots Dependent on Same Variables

I need to combine two plots on the same graph to highlight the intersection of the two while being able to manipulate various parameters that are common to both functions. I need to have the slider ...
17 views

### Object depth different in replacement rule

I access the first part of an expression with head foo without a problem: foo[arg][[1]] arg Then when I try to use this ...
25 views

57 views

### How do I plot a plane pi/6 along with its path?

The position vector is r[t_]:={Sin[t]+Cos[2t],Cos[2t],Cos[t]} and the plane is ...
109 views

### PlotStyle with Table

I want to create a plot style with a table and manipulate the variables in the plot style. ...
80 views

### How to get back name of the number from Max function? [duplicate]

So I have this question, using a toy example: a={1,"this"}; b={2,"that"}; result=Max[0,a[[1]],b[[1]]] the result will be 2. However what I want to obtain is ...
20 views

### unexpected behavior of matrix formatting smith waterman [migrated]

it's supposed to be Smith-Waterman algorithm, and I'm getting almost correct output, but not exactly and Id love to understand why, so here's my code: ...
40 views

### Reading Eigenvalue / Eigenfunction result from Reduce

I am trying to find the eigenvalue/eigenfunction solution to: $$\tag 1 y''+3y + \lambda y=0 ; y'(0)=0, y'(\pi)=0$$ I used DSolve and Reduce and they seem to converge, however (embarrassingly) I am ...
71 views

### Problem with strings imported from PDFs

I am currently working with a list containing around 20 strings which contain around 30,000 characters each. The strings are imported from PDFs and the list containing all the strings is assigned to a ...
61 views

### Assign clipboard object in mathematica when print screen is pressed (windows)

Mathematica runs behind, while another window is selected. When I press print screen, I want mathematica too detect this and call a function with the picture as argument. ...
48 views

### Pattern-rewriting Pattern triggers error?

I am trying to rewrite patterns. For example, I'd like to rewrite the pattern jFoo_Integer which has FullForm ...