# All Questions

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

I want to solve the Stokes equations for two spherical bodies (some distance apart) with prescribed velocity on their surfaces, in an otherwise static fluid ($\mu$ and $p$ are constants) $$\left\{ ... 1answer 26 views ### Open a pre-existing CDF file from a stand-alone CDF file This is related to my previous question here A series of my questions are related to an important problem: It is important to be able to CDF-publish a document, and be able to open a separate ... 0answers 35 views ### Deciding lambda and integrate a function [closed] I want to decide lambda for this function I also want to integrate the same function. Please help! 0answers 48 views ### Equation in implicit form This is simple example: v = {1.48622576, 1.53444276, 1.42299438} v/(v + 1) Out[1]:= {0.597784, 0.605436, 0.587288} In the above case expression v/(v + 1) is ... 0answers 23 views ### What is the function derivative [closed] What is the function derivative? f'(x)=? what is the way to the answer? 1answer 28 views ### How to set the values into some variables from different lists [closed] I have a list of Values and a list of variables. I want to set the Values into Variables. Assume the following code: ... 0answers 20 views ### Mathematica program for PLUR decomposition of a symbolic matrix using full pivoting I wanted to ask if there is a Mathematica program for PLUR decomposition of a symbolic matrix M, such that M = P*L*U*R, using FULL (row and column) pivoting, and where R = reduced row echelon form of ... 1answer 108 views ### How do I randomly select 'k' positions in a list and shuffle their respective elements without effecting the other elements? Imagine I have some list: listA = {"a","b","c","d","e","f","g","h","i","j"}; I'd like to randomly select k positions in the ... 0answers 42 views ### Computing residues of matrix valued functions symbolically I have a somewhat specific application in mind, but I've run into this kind of problem a few times and never found an elegant solution. Is there an efficient way to get Mathematica to recognize that ... 0answers 46 views ### NDSolve: Couple ODE and PDE I am trying to numerically solve an equation with NDSolve, where there is a ODE coupled to a PDE, like the following: ... 2answers 386 views ### I want to get a special curve in a picture I have a picture,and I want to get a special curve in this picture ,than draw the line in a new picture.inbut I can't do this . Like this: The picture is this Anybody have an idea? 1answer 56 views ### Partitioning a list and gathering statistics on the distribution of values across partitions I have a one-dimensional array of 200 elements consisting of the numbers 0, 1, 2. This array needs to be divided into 10 groups (20 items each). Then, for each group, I want to count how many of the ... 1answer 72 views ### How to work with Interpolating Function? I'm starting using Mathematica. I have two coupled differential equations and after using NDSolve the output is in the form of a Interpolating Function. I want to Plot the square modulus of one of the ... 0answers 24 views ### Ordering the Terms in an Expression [duplicate] Why does Mathematica almost always put subtractions as the first term in a summation (as a negative summed with the rest)? How do I circumvent this feature so that every occurrence of "-" follows ... 1answer 39 views ### Formatting All Appropriate Output as Desired Automatically I want to output in MatrixForm whenever I have a list/vector/matrix, but I do not want to have to type out the command each time. How can I write one command at ... 1answer 88 views ### DynamicModule with Plots and EventHandler I am making a little animation in Mathematica, along the lines of some of the Wolfram demo projects. I'd like to animate a simulated trajectory of a random process (say a Poisson process), and while ... 0answers 47 views ### ParallelTable, ParallelDo and ParallelMap all fail on simple evaluations, a BUG? [closed] Sorry I am relatively new to the parallel functionality mathematica.. Here is to code: ... 0answers 30 views ### Mathematica 9.01 and CUDA under VB 2013 and modified CCompilerDriver I tried to force CUDA using Visual Studio 2013 C compiler by manipulating the VisualStudioCOmpiler file found at C:\Program Files\Wolfram Research\Mathematica\9.0\AddOns\Applications\CCompilerDriver ... 2answers 83 views ### Need to create a function to generate all permutations of Range[n] [duplicate] Basically I need a function that takes a list and gives all the possible permutations of it. The reason I can't use Permutations is that I have to apply another ... 1answer 30 views ### Results of ArgMax as a function of a parameter with InterpolatingFunctions I would like to obtain a function and its derivatives, where the function is defined as the solution to a maximization problem. The obvious approach ... 0answers 48 views ### Read in bezier curve from svg file I am trying to do some calculation of some svg file,After read in with Import["filename","XML"]and some easy operation, I can get the string of the bezier curve, ... 4answers 245 views ### Find the longest constant sublist Given a list list = {1,2,2,2,2,5,1,3,2,6,6,6,6,6,6,6,6,6,6,6,10,-3}; how to find the longest constant sublist (or equivalently the element and the number of ... 2answers 200 views ### How can I calculate the limit without using the L'Hopital's rule I need to prove this limit without using the L'Hopital's rule:$$\lim_{x\to 0} \frac{(1+a\,x)^{1/4} - (1+b\,x)^{1/4}}{x} = \frac{a-b}{4}$$How can I do it in Mathematica? 2answers 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 ... 1answer 77 views ### combining plots [closed] I've made the following plot ... 0answers 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 ... 0answers 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 ... 1answer 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 ... 1answer 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 ... 1answer 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 ... 2answers 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: ... 1answer 151 views ### Compile with array operations When I use the function f with only the Module ... 1answer 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: ... 0answers 24 views ### Minimize solution to linear system with singular system matrix 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 ... 0answers 37 views ### Machine precision infinity Is it possible to obtain the machine precision (double) version of Infinity? This is useful when using LibraryLink and C ... 0answers 43 views ### DSolve failing to solve second-order ODE with two boundary conditons [closed] I am utilizing Mathematica to solve the following equation:$$y^{''}(x)-5y^{'}(x)+10y(x)=10x $$The following stated boundary conditions are supplied:$$y(0)=0 \ \ y(1)=100  The following error ...

15 30 50 per page