3
votes
5answers
179 views

Summarize a list of pairs / (Using GatherBy and Tally?)

Given a list of (frencuently repeated and unsorted) pairs {Mode, SubMode} I want to form the list ...
1
vote
3answers
96 views

Creating Graph with two or more values in second column

For a social network analysis I have two columns. The second column has one, two or more values. Something like this: ...
0
votes
0answers
95 views

Visual Studio 2013 Mathlink addtwo

I was needing to use Mathlink to call some c++ code so I thought I would learn from the basic examples but I am running into strange issue. Following the procedure outlined from the Mathematica ...
2
votes
2answers
112 views

How to make a recursive code from this iterative code? (drawing tree graph)

I have a question about drawing tree graph. I use my iterative code to build a tree graph. Here it is. ...
0
votes
0answers
23 views

relative directory paths within a mathematica package/what directory does a mathematica package see as local? [duplicate]

I have a package that gets loaded in many notebooks I use, with Import[pathToLibraryDirectory<> "toolkit.m"]; This toolkit in turn loads some Excel ...
2
votes
1answer
92 views

Make a “ditch” function for electric field purpose

I'm trying to make a function to simulate a finite bar and get the electric field, i did it by put 22 funnels together but is too slow and is not very accurate; does anyone have any function to ...
0
votes
0answers
54 views

inequalities in equations and constraints

Say That I have the constraint: .5<x1<x2<x3<x4<40 I want to use this constraint in a Nminimize function. It seems that mathematica runs into a ...
0
votes
0answers
48 views

How to hide global variables in package?

in the package I'm writing I have a list of global variables which should not be visible from a notebook. Here's an extract of the package: ...
2
votes
1answer
69 views

Using Total on a list supplied by a rule

I'm confused as to why Total complains about a nonatomic expression here: ...
0
votes
0answers
56 views

Mathematica comments disappeared

I pressed Ctrl+Shift+N by mistake and all my comments in the active cell disappeared! Unfortunately, I missed the chance to undo that operation. Does anyone know how to let them reappear?
0
votes
1answer
79 views

How to transfer my Mathematica Student licence from Linux to windows [closed]

I would like to ask if it is possible to transfer my windows licence to linux. I have already filled out system transfer form, but in the list of downloadable software I can see only windows version. ...
0
votes
0answers
22 views

Symmetric sum and Muirhead's Inequality

I was able to find some reference for symmetric polynomials but not for the symetric sum (see http://en.wikipedia.org/wiki/Muirhead%27s_inequality#Symmetric_sum-notation_tricks ) Please could anyone ...
0
votes
0answers
41 views

JLink Get ALL output from a mathematica command

I have the following code (Java code using JLink). ...
1
vote
1answer
69 views

Selecting items in a list based on multiple tests

I have an array of strings that look like this: ...
5
votes
1answer
143 views

Capture an image by non-default device

Guys! I need capture video from certain webcam which isn't $DefaultImagingDevice. As I know there is one legal way: ...
2
votes
3answers
151 views

Wrapping a data selection in Mathematica

I was wondering what would be the most efficient way to add brackets to given elements in my data set in order to change it's form from {{a,b},{c,d}} to {{{a},b},{{c},d}}. I took a look through a few ...
2
votes
1answer
51 views

How to distribute PermutationProduct over the sum

Assuming I have two elements of the permutation group algebra $a_1$, $a_2$ such that $a_i=\sum_{p\in S_n}\alpha_pp$, I want to define a linear product $\odot$ that distributes over the sum and pulls ...
0
votes
0answers
50 views

Always the same problem with Conjugate [duplicate]

I want to compute something like : ...
6
votes
2answers
225 views

Binomial[-1,-1]

According to various sources e.g. http://www.proofwiki.org/wiki/Definition:Binomial_Coefficient and Wolfram themselves http://functions.wolfram.com/GammaBetaErf/Binomial/02/ , the binomial ...
5
votes
2answers
328 views

How to export 3D plot, without losing the specified view of rotation?

Sorry I am not sure if I got anything wrong with this version of Mathematica and Mac OS X i am running. But every time I export a 3D graph, to png or tiff, I lost the view angle, view vector viewpoint ...
1
vote
1answer
137 views

Finding the position in a list where the maximum or minimum value occurs [duplicate]

We can use Max[exampleList] or Min[exampleList] to find the maxima and minima of ...
1
vote
1answer
38 views

How to change a spacing between the lines of a notebook?

My question is formulated above. However, to precise a bit I would like to split it into two sub-questions: It it possible to define the spacing in the current notebook/CDF pressumably through the ...
0
votes
1answer
93 views

Open an MX file used by the kernel [closed]

I am working on a graph, and I am using Mathematica function FindGraphCommunities to analyze the properties of this graph, but I have no idea about the algorithm ...
7
votes
3answers
424 views

Line Intensity Profile From Image

I can get line profiles from images using imagej but it would be nice to be able to do this in my mathematica notebooks. I found this http://library.wolfram.com/examples/intensityprofiles/ after ...
2
votes
1answer
155 views

Plot 3D boolean Array or matrix in Mathematica

I have been attempting several methods to plot a 3D diagram of a n by n boolean array in Mathematica but none of them produced satisfactory result. I want the $3D$ plot to have a cube when ...
3
votes
3answers
111 views

TableForm with a title

My question is rather simple. I want to put a title into a table. For example, consider a list with depth two and a title ...
1
vote
1answer
87 views

Winkel Tripel and Robinson Projections?

How can I do WorldPlot with the WorldProjection -> Winkel Tripel or Robinson projections. Mathematica has Mollweide and several others defined, but not these popular projections adapted by National ...
0
votes
0answers
67 views

Roots of characteristic equation of sixth order

I have problem how to localize the roots of the sixth order polynomial given in the form of determinant. Classical Solve gives the solution which are in the long form. Is there way how to present ...
10
votes
0answers
216 views

C Code generated from Mathematica not working?

I am a .Net developer. I'm trying to build a Visual C++ application using C code generated from Mathematica (by another person). I don't have Mathematica installed on my machine. When I try to compile ...
0
votes
0answers
61 views

Solving systems of equations and derivatives

I am new to Mathematica, and I'm not sure how to solve a system of equations that include differentiation. Given that f and g are differentiable functions: ...
1
vote
2answers
89 views

Is it possible restore initial values after modify a control in manipulate?

I used to program in Visual Basic, but in Mathematica I have not seen some kind of restore default values after any user modification command in the Manipulate ...
2
votes
4answers
100 views

Cancelling units in two-argument ArcTan

Consider ArcTan[3, -3] (* out: *) -Pi/4 ArcTan[3 a Sin[t/2], -3 a Sin[t/2]] (* out: *) ArcTan[3 a Sin[t/2], -3 a Sin[t/2]] However, we can fix the ...
0
votes
1answer
118 views

Why mathematica have difficulty solving nonlinear equations? [closed]

I tried to solve this equation via Mathematica: ...
0
votes
1answer
119 views

Determinant of a square matrix with univariate polynomial entries is not a polynom? [closed]

I have a 15x15 Matrix with all polynomial entries. I want to calculate the determinant of the matrix. To my understanding the determinant should be a (albeit high order) polynom, too. And the paper, I ...
4
votes
1answer
125 views

Missing V9 Menu: File -> New -> FreeCDF

I can run CDFs fine, and can export Notebooks as CDFs. But the File -> New menu does not contain a FreeCDF option, just the ...
1
vote
1answer
85 views

Need help defining my own rounding function

First of all: I'm a beginner with Mathematica. I'd like to define a function called Rounding which does the following: if for $x = n+a, n \in \mathbb{N}, a\in ...
9
votes
3answers
438 views

What is the most efficient way to map a linked list?

In order to work with lists effectively using common recursive patterns from functional programming, it's often most convenient to worked with the "linked list" representation, that looks like this: ...
0
votes
0answers
39 views

FindRoot with units error: Message text not found

This is sort of embarrassing. I'm working on a document to extol the virtues of Mathematica, and I can't get it to solve a relatively simple system of equations involving units. In this code, when I ...
7
votes
3answers
365 views

1D quasicrystal: points on a line nearest to points on a lattice

I have a simple lattice / line manipulation: ...
1
vote
1answer
40 views

How to create a user interface, that when a user clicks a button the entire display changes? [closed]

For example, the 'main menu' user interface has three buttons each labeled with a different level. Whenever button is clicked how do you display that level of the game without creating a new notebook? ...
3
votes
1answer
56 views

Creating a parallelizable DiscretePlot

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the ...
0
votes
1answer
110 views

Solving a system of two equations of third degree

I am trying to solve the following system of two equations for x and y. The solutions for x and y have to be positive and the parameters s and c are positive (to have a coherent interpretation of my ...
0
votes
0answers
105 views
4
votes
3answers
250 views

Problems using hand-made transformation functions

I experience difficulties when using custom transformation rules. Below I give two concrete problems. I am interested in fixing each of them and in understanding what is wrong with my attitude to the ...
0
votes
0answers
29 views

Generate polyhedron from coordinates [duplicate]

This seems to me as an exceedingly simple question which I to my frustration can't seem to get a hold on: Given a set of coordinates, how do I make mathematica create a polyhedron from them? In my ...
2
votes
2answers
174 views

Plotting a section of an hemisphere

I'm writing a little package in Mathematica for geology where a particular stone may be approximated as an hemisphere. Anyway this is a rough estimation because a real hemisphere has its height as ...
0
votes
0answers
45 views

Get correlation matrix when using FindGraphCommunities

Does somebody know how to get the correlation matrix when using FindGraphCommunities (Social Network analysis) using the "Spectra" option? Can somebody tell me as ...
0
votes
2answers
66 views

Alternative to xor(A,B,C) [closed]

How can we make a comprehensive statement, which will correspond to the truth table of xor (A, B, C) (means that only true if exactly one of A,B,C is true) by combining logical operators AND (&), ...
1
vote
2answers
98 views

Using Mathematica to derive the PDF of the normal distribution

I am trying to use Mathematica, in this case in a well known and rather simple list of equations, but I get stuck whit Mathematica. Since I am just starting to use Mathematica for mathematical ...
0
votes
1answer
85 views

How to plot particular piecewise defined functions in mathematica

How to plot such functions in Mathematica? Let $a_0, p,g,c$ be any positive integers, defining: $$a_{n+1} = \begin{cases}\frac{a_n}{p} &, a_n \text{ divisible by p}\\ ga_n +c &, a_n \text{ ...

15 30 50 per page