2
votes
1answer
172 views

Slide show - how to autorun manipulate

Is there a way to automatically run a manipulate command when you move to a slide ? I am trying to create a presentation and i have a number of slides which have use manipulate and i want these to ...
2
votes
3answers
388 views

GraphPlot only working when I evaluate twice

I have some code that builds a graph and some vertex coordinates, but when I evaluate it I get a message that the list of coordinates is not valid and the graph is not valid and it shows the output as ...
4
votes
2answers
519 views

Selecting multiple columns from a matrix?

Sample data: ...
1
vote
1answer
479 views

Import Excel sheet into 3D array?

I have an excel spreadsheet that I would like to plot in a 3D graph using mathematica. The X and Y values are the location of the cell, and the Z value is the number of the scale. How can I import ...
0
votes
1answer
79 views

What options control PairedHistogram axes style?

What options control axes style in PairedHistogram? Here's the online doc. I'm trying to control axes color, thickness, and probably font size on the tick marks. but the options are confusing me: ...
3
votes
3answers
237 views

Can Button[] generate output without using Print[]?

Button[] beguiles me. A simple example follows: ...
5
votes
1answer
191 views

How to define and compute various properties of a variable size matrix

I have a rather simple question, but I have not been able to figure out how to implement a solution in Mathematica. I would like to define a variable size square matrix, say an N x N matrix A, whose ...
2
votes
2answers
292 views

How do I get the solutions of a cubic equation in trigonometric form?

I know $x^3-3 x+1=0$ has three roots that can be expressed in trigonometric form: $\{2\sin(10^\circ),\,-2\cos(20^\circ),\,2\cos(40^\circ)\}$. How can I get this result with Mathematica?
0
votes
1answer
239 views

Hyperbolic numbers and their polar form

How can I implement Hyperbolic numbers in Mathematica? How could I express their polar form? How could I calculate their power?
2
votes
3answers
205 views

Selecting terms containing some expression

Imagine I have an expression like a*k + (a^2)*b*c + b*e and I would like to obtain the term containing, for example, some power of a. In that case I would ...
5
votes
1answer
413 views

Simplistic Notation example

Notation package looks poorly documented. For example, GridBoxDividers option is not documented at all. Can someone give me a simplistic example of a Notation set ...
1
vote
1answer
143 views

What is the new command for AffineMap?

AffineMap was present in Mathematica version 4. What is the equivalent command in the current version of Mathematica?
1
vote
1answer
166 views

How to enter arrows in Notation function?

It is not clear, what symbol is used in Notation function description for arrows? How to enter it in textual mode within Workbench? Here: ...
1
vote
1answer
219 views

Efficient method for factor expressions with square roots

Inspired from this, I tried factor following expressions, Mathematica takes a long time, I couldn't even wait for it to finish. Maple calculating it takes about 5 sec. Can you recommend an efficient ...
9
votes
1answer
316 views

How can I collect data for visualization of quick sort?

I know how to implement quick sort in Mathematica. But I don't know how to get the temp data for visualization, because I used recursion. I want the effect like this. ...
8
votes
2answers
602 views

Why is Mathematica's expansion of expressions with square roots so slow?

Mathematica expansion of expressions with symbols isn't slow, but with square roots it is very slow. In Maple or Mupad both are fast: with square roots they both take less than a second. Here is an ...
2
votes
1answer
159 views

How does DistanceFunction work with images in ClusteringComponents?

Does anyone know the syntax to DistanceFunction? I am trying to define my own function to use with ClusteringComponents; e.g., ...
4
votes
2answers
125 views

Does the operating system matter when using Encode[]?

I have a package I want to distribute. I wrote the package in Version 9 under a Mac OS X operating system. I want to Encode[] the package. The end user will ...
34
votes
8answers
7k views

How can I improve Mathematica's resolution on a macbook retina display?

Mathematica looks a bit fuzzy on the retina screen, how can I increase the resolution? Here another screenshot showing a direct comparison between the browser and Mathematica
1
vote
1answer
247 views

Calculus 1 Related Rates -Total Derivative issues

I'm trying to do part a) of this calculus 1 problem in Mathematica V9: http://tutorial.math.lamar.edu/Classes/CalcI/RelatedRates.aspx#Deriv_Rates_Ex4 Warning noob code below! ...
0
votes
3answers
339 views

How to export a header before the data in the result file?

I would like to export a phrase to my result data as a heading. I'm exporting the data correctly with Export["file.dat", table]. But I'm doing several ...
16
votes
1answer
314 views

Upvalues, TagSet and UpSet, what's the difference, when should a use each?

Some of the big mysteries of Universe Mathematica for me is the application of UpValues. I know about this question and know the very poor Mathematica documentation on that. I'm very curious to know ...
9
votes
1answer
163 views

in v9, backspace causes cell to become section style

In the front end of v9, in any given cell that contains content, if I hit backspace to clear the content until there is nothing left, and then hit backspace one more time, the cell becomes a ...
2
votes
2answers
191 views

Hiding certain user-defined functions in front-end autocompletion

I have written an elaborate code that contains a collection of functions for the user and a bunch of auxiliary functions whose existence I would like to hide away from the user. I've written my code ...
3
votes
2answers
973 views

Taking class notes with a Mathematica Notebook

Dose anyone take notes in a technical class using a Mathematica notebook? If anyone does, how does it compare to paper and are there useful commands? I have a hard time remembering ctrl/alt/esc ...
2
votes
0answers
710 views

Installing Android ADT and Aptana studio plugins into Workbench

My question is a dual to this one. I use Workbench 2.0, but I am now interested in developing some Android Apps and Html projects. In order to do that, I need to install Android ADT and Aptana ...
1
vote
1answer
151 views

ListPlot does not recognize my list

I have created a list in Mathematica and for some reason it does not want to Plot my list in pairs {x1,y1}, but instead does {y1,y2} even though I partitioned the list to make it in the correct ...
3
votes
2answers
75 views

Detecting operator Set in Assumptions

Here is a typical issue: Simplify[x + y, x = y] produces 2 True. Is there a way to detect operator ...
12
votes
1answer
395 views

Get the current iteration count

I would like to be able to get the current iteration count, the one that if exceeds $IterationLimit makes the evaluation stop. After not finding a magical variable ...
3
votes
1answer
263 views

Filter bright dots from the gradient of the image

I am wondering how to filter out bright dots in the picture, which are caused by background noise. I have used gradient filter in mathematica but it doesn't help. Is there anyway, that I can plot ...
149
votes
19answers
13k views

What are the most common pitfalls awaiting new users?

As you may already know, Mathematica is a wonderful piece of software. However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
4
votes
3answers
503 views

How to align dynamic graphics and an image within an Overlay?

I have dynamic graphics over an image but they won't line up, what am I doing wrong? ...
3
votes
3answers
231 views

How to change a value within a list of lists?

I essentially have two questions, both are related. 1) How do I change a value within a list of lists (I provided a example problem)? 2) Why does my code not work? I have a list which was created ...
13
votes
1answer
446 views

Most efficient way to determine conclusively whether an algebraic number is zero

Let x be an algebraic number of unspecified degree, expressed using arithmetic, rational powers, and algebraic integers (edit: ...
5
votes
0answers
530 views

Automatic recovery after crash

I want Mathematica to periodically autosave my notebooks to the temp folder. And in case of front-end crash i want to see the dialog after restart with the following choices: recover from autosaved ...
14
votes
4answers
1k views

World plot without borders between countries

I would like to plot the world map without the countries' borders and just the coastlines (in Mathematica 8). I need to overlap a temperature contour plot on the world map. When I plot country data ...
0
votes
1answer
119 views

Plotting results of numerical differential equation

I'm numerically solving the ODE equation $a = -kv$, i.e. $ x'' = -kx'$. sol = NDSolve[{y''[x] + 0.1 * y'[x] == 0, y[0] == 0, y'[0] == 10}, y, {x, 0, 100}] I need ...
0
votes
1answer
226 views

Bit Operations — Force Binary Bit Representation

How to force binary bit representation of a number, so BitNot does yield the 1s-complement? BitNot[n] turns ones into zeros and vice versa in the binary bit representation of n. I was unable so ...
5
votes
2answers
156 views

How to present a Graphic and a Table in close proximity to each other

Often, with a Plot or within Manipulate I want to display a graph and, in close proximity to it, a table showing the results of ...
1
vote
1answer
142 views

How do you multiply out integer powers in a symbolic expression?

I have the following problem: I want to transform integer powers into a series of multiplications within symbolic expressions. E.g. x^3 should be written as ...
2
votes
1answer
135 views

How to evaluate the sum over a hyperplane

I have difficulties in evaluating the following expression: $$\sum_{\small n_1+...+n_{k}=m-k}\; \prod_{i=1}^{k}\frac{1}{(n_i+1)(n_i+2)}$$ I have tried the function ...
7
votes
2answers
349 views

Bitwise operators - Hamlet for Mathematica

What is the best way to check this famous equation: 0x2b || ~0x2b == 0xff Mathematica doesn't seem to have a handy bitwise negation operator. The best thing I ...
5
votes
1answer
207 views

Override @ to mock Java Classes

This question appears impossibly long so apologies in advance (skip to the bottom if you want to see the actual questions). I want to be able to mock Java Classes in Mathematica code. For example, I ...
32
votes
1answer
1k views

Mathematica 9 cannot solve this Integral. Mathematica 8 could. Is this a bug?

I was trying to (re)calculate a problem of an older Wolfram blog post (Problem 11457, by M. L. Glasser) with Mathematica 9.0.0.0 (on OS X 10.8.2). ...
2
votes
2answers
199 views

How can I shift the frame ticks to the corner of each element-cell in a Matrixplot?

I am using the following code,to create a Legend for my plot. I would like to shift (or re-position) the frameticks to the corner of each of the cell-elements instead of being in their middle. I ...
0
votes
1answer
395 views

Array of functions, evaluation in plot

I would like to create two arrays of functions yfunc[[i]] and tfunc[[i]], with each entry of those functions being a function ...
20
votes
1answer
507 views

How can we create Randolph diagrams in Mathematica?

I have become fascinated with Randolph Diagrams and was wondering how we would create the diagrams from logical sequences using Mathematica? It looks like it would be a combination of logic and ...
5
votes
2answers
973 views

Game theory packages

Is there any game theory package around? I mean supporting functions which take a game in matrix form and tell you all about nash equilibra, best strategies, ect
4
votes
2answers
227 views

Pattern matching repeated structures with named subexpression components

I am trying to write a function with a pattern that tests its arguments for a particular structure. But in that pattern I'd like to name a subpattern to make it easier to exract and operate on. The ...
17
votes
4answers
622 views

How to efficiently import videos

I need to do frame-by-frame analysis of videos. I can import the video files I need, but each file is too large to import at once. I can use the ...

15 30 50 per page