1
vote
1answer
29 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: ...
0
votes
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 ...
4
votes
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 ...
0
votes
0answers
43 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 ...
0
votes
0answers
52 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: ...
5
votes
2answers
393 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?
1
vote
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 ...
0
votes
1answer
75 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 ...
1
vote
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 ...
1
vote
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 ...
2
votes
1answer
130 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 ...
1
vote
0answers
48 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: ...
0
votes
0answers
32 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 ...
3
votes
2answers
87 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 ...
2
votes
1answer
32 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 ...
0
votes
0answers
50 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, ...
3
votes
4answers
247 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 ...
4
votes
2answers
205 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?
3
votes
2answers
452 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 ...
0
votes
1answer
78 views

combining plots [closed]

I've made the following plot ...
0
votes
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 ...
0
votes
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 ...
1
vote
1answer
62 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 ...
2
votes
1answer
78 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 ...
0
votes
1answer
43 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 ...
4
votes
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: ...
1
vote
1answer
153 views

Compile with array operations

When I use the function f with only the Module ...
0
votes
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: ...
0
votes
0answers
25 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 ...
3
votes
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 ...
0
votes
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 ...
0
votes
1answer
55 views

Unable to configure a system of differential equations

My differential equations have been written as ...
4
votes
1answer
96 views

How can I prevent a Plot expression from evaluating points forbidden by its RegionFunction?

I just ran into this and it had me scratching my head for a good while. Say I have a function which may produce error messages for certain inputs, like e.g. ...
8
votes
1answer
135 views

How to change the appearance of a group opener?

I would like to change the GroupOpener appearance. In the present Mma design it is too small and can be missed by a reader unfamiliar with Mma. I know, how to change its color through the ...
-1
votes
0answers
69 views

Errors of machine precision [closed]

I receive this error and do not understand this. What is it? Actually I'm not doing any ABS or Log of something I don't know how it has popped up in calculations? N::meprec: "Internal precision ...
1
vote
1answer
43 views

Multiple Linear Regression - obtaining equation with constant term

I am trying to use the LinearModelFit function to obtain a linear regression of my 5 inputs for my single output. I have the input data: ...
0
votes
1answer
55 views

How to manually set z-axis values in a 3d plot?

I'm plotting an hemisphere with ...
2
votes
0answers
27 views

ContextPath and autocompletion with subpackages

I'm developing a larger package which includes several subpackages. My problem is, that I can't introduce the symbols in the subpackages to the autocompletion by loading the main package, but by ...
0
votes
1answer
78 views

Plot Notes present in sound sample

I would like to visualize a sampled sound, and place the sounds as notes starting from C0 to A8 or such. I have a table of ...
1
vote
1answer
81 views

Behaviour of OutputResponse in ListLinePlot

Ok, I think this is not the best way to do this, so I'm open minded for every suggestion doing it in a better way. The Question is why does ListLinePlot not plot ...
0
votes
1answer
68 views

What is the comment shortcut?

I went to a Wolfram Technologies workshop a few weeks ago and the presenter showed us a keyboard shortcut that when a block of input is selected, the shortcut puts the block of selected input in ...
0
votes
1answer
80 views

Vector-calculus [duplicate]

I have a table of 200 elements, elements are '0', '1', '2'. I have participate them into groups for 20 elements each one. Then I have calculate how many '0', '1', '2' are in each part. And then in ...
0
votes
0answers
16 views

How to set up the font size permanently (i.e. for all notebooks, all future sessions?) [duplicate]

The default input / output font size in Mathematica's notebooks are too small for my screen. I would like to set up permanently a conveniently larger font size so that in any future session I get ...
1
vote
1answer
71 views

What is happening in Map[Function[x, x^2], a + b + c] from the Pure Function tutorial

The Pure Function tutorial gives an example: Map[Function[x, x^2], a + b + c]. I would expect the output to be (a + b + c)^2, ...
0
votes
0answers
38 views

How to plot a “pressed” hemisphere [duplicate]

What I'd need is to draw an hemisphere of given radius but then it should have a reduced height. I don't mean a section of an hemisphere, I mean that the hemisphere should be pressed/flattened...so ...
1
vote
1answer
64 views

Sectional averages of a list [closed]

I am working in Mathematica. I have a table of 200 elements. I want to calculate the mean value for the first 20 elements, for the second 20 elements and so on, up to 200. I will get a table (matrix) ...
1
vote
0answers
28 views

CDF to give away with a custom StyleSheet

Related to this. I would like to be able to give away CDF documents created with a custom StyleSheet. The important peculiarity is that this document is assumed to be viewed on a machine with no ...
0
votes
1answer
44 views

A Box for the integral or partial derivative d

I am looking for the name of the box in the Box Language of Mma making integrals, such as those shown in the image below as well as of the sign of the partial derivative. I understand that I can get ...
0
votes
0answers
36 views

How to make the MMA document has the background--color effect when the dounment is printed?

Description: Recently,I use the Mathematica to do my undergraduate paper,I would like to use the Mathematica to compose my paper. So I hope the Input and Output results have the ...
0
votes
1answer
42 views

What is wrong with this code compilation? [closed]

I'm trying to factor this complicated polynomial (and also plot it, but that'll be worked out later)

15 30 50 per page