# All Questions

79 views

### Automatically highlight certain cells

I am looking for a method to highlight certain cells in a table/Grid based on meeting some user defined conditions. As an example: ...
46 views

### How to efficiently distinguish the rewired edges in WattsStrogatzGraphDistribution?

The WattsStrogatzGraphDistribution function is a way to construct random graphs based on Watts and Strogatz small world model. The ...
58 views

### Unintentional function memoisation via Dynamic

I needed to display edge labels of a graph in a way that allows the edge labels to be moved. ...
36 views

### Easy NMinimize does not converge

I try to minimize the following for a>0: f[a_] := Gamma[3]*a^(-3)*(Integrate[Exp[-u]*(u - a)*1/u, {u, a, Infinity}])^(-1) I put in ...
14 views

### I have problem with Trigonometry [migrated]

Tomorrow I have a test and there is one exercise in my textbook that isn't explained. Here is the exercise. ...
27 views

### How to save all data in all variables in context different than “global”?

I have seen questions on saving data on "global" context. Now if I set my notebook's evaluation context "unique to this notebook". the global context doesn't work quite well. Any idea what should i do ...
74 views

### Initialize table in a Module but Break if criteria not met

I am initializing a table inside a function as follows: f[a1_, a2_, a3_] := Module[{RM = Table[a1+a2+a3+i1, {i1, 1, 10}]}, Plus@@RM] I am calling the function ...
37 views

### max K-coverage problem in mathematica [closed]

Is it possible to get a max K-coverage problem solution(s) and/or number of possible solutions in Mathematica? Additionally ...When items of subset to be must cover is given Its NP-Hard problem, but ...
35 views

### Why isn't Mathematica plotting my differential equations? [closed]

So here are my equations eqns = {x'[t] == a*y[t] - b*x[t] + g, y'[t] == c*x[t] - d*y[t] + m, x[0] == 60937, y[0] == 13797}; Then I solved it with ...
47 views

### Summing a trig series

I am trying to sum the following expression: (Cos[(2 π m)/N]^2 Cos[(2 π n)/ N])/(2 (Cos[(2 m π)/N] - Cos[(2 n π)/N])) from ...
40 views

### expression contained across multiple cells

Is it possible to span one expression across multiple cells? E.g. long if statement or function evaluation. I looked in documentation and searched forum/google and could not find.
85 views

### Resume/continue interrupted evaluation

I interrupted an evaluation to quickly do something else. How do I resume the interrupted evaluation? I cannot open the "Interrupt evaluation" window, as it is disabled. There is no "Resume" button to ...
31 views

### How to make an equation to fit measured data [closed]

I want to make an equation based on my measurements and I have no idea where to start from. I have measured 3 parameters(x1,x2,x3) and calculated the 4th(y). How can I make an equation that can ...
120 views

### Randomly selecting and reinserting a subset of elements in a list

This question is similar to my other question: How do I randomly select 'k' positions in a list and shuffle their respective elements without effecting the other elements? Imagine first a ...
76 views

### How do I constrain movement for lists of Locators using 2nd argument of Dynamic?

I need to display edge labels of a graph in a way that allows the edge labels to be moved. Locator seems the simplest and most obvious function to use. My ...
48 views

450 views

### Why are my recursive functions running so slowly? And how do I fix them?

I am working with making numerical solvers for a modeling class I am in, and I want to use the internal recursion handling that is built into mathematcia, but there seems to be a problem. NDSolve ...
77 views

### combining plots [closed]

I've made the following plot ...
39 views

### Defining a function in Mathematica [closed]

Get the list oddthree of numbers between 100 and 2000 which are the product of three distinct odd primes. Hint: use a Select your condition should be a combination of ...
76 views

### PDF files generated by Mathematica on Windows cannot be viewed on Ubuntu [closed]

I have used Mathematica in order to achieve verify solutions of some ODEs on Windows and generated PDF files out of notebooks. After I switched to Ubuntu 12.04.3 I noticed that the PDF files were ...
57 views

### Same Mathematica 9.1 Student License on both Ubuntu and Windows 7 [closed]

Is it possible to install Mathematica 9.1 on both Ubuntu 12.04.3 LTS and Windows 7 Home Premium on the same machine. I want to be able to use Mathematica on Ubuntu since I wrote some numerical codes ...
75 views

### MathLink c++ passing lists of real values simple example

So this may come down to me not being a very competent programmer but I am struggling with passing list from Mathematica via MathLink that aren't of integers. The final code I am hoping to get out of ...
42 views

### Solving a system of equations where two variables can only be one of several discrete values

I want to solve a three-equation system, but I need to constrain two of the variables so that they can only take one of several discrete values that I would specify (this is a circuit design problem ...
93 views

### Counting the number of instances of one sub-string within a given string within a lower- and upper-bound gap of a second sub-string

Please consider the situation where I give you a list where entries are drawn from a fixed set of characters: ...
151 views

### Compile with array operations

When I use the function f with only the Module ...
79 views

### How to produce functions [closed]

I want to produce n functions. For example, assume that by giving n=3, 3 definite integrals will be created, like the following: ...
I am trying to solve a time-dependent linear system with a singular system matrix, $A$, thus an infinite number of solutions, ${\bf x}$(t), exist that satisfy the linear system. The solution I am ...