6
votes
1answer
148 views

Keyboard shortcut for moving to last edit location/cell

When you have long notebook with hundreds of cells, you sometimes need to scroll/jump manually to your last edited cell. I dind't find any shortcut for doing that. Any ideas?
5
votes
1answer
1k views
2
votes
2answers
167 views

Solving for any one variable in a formula given values for all the others

Suppose I have an equation relating a number of variables and I know the values of all but one of them. Using the equation and known values as input, is there a simple command (built-in or otherwise) ...
1
vote
1answer
366 views

Understanding execution time in nested loops

I have the following simple code ...
5
votes
0answers
116 views

SparseArray internal structure [duplicate]

According to the documentation: SparseArray is treated as a raw object by functions like AtomQ and for purposes of pattern ...
2
votes
1answer
209 views

Importation multiple dcm images [duplicate]

I'm extremely new to Mathematica. I want to import 201 .dcm (DICOM) files into Mathematica 9. Is there a way to do this which doesn't require my doing it an image at a time? My ultimate need to is to ...
1
vote
1answer
159 views

Matrix substitution

I'm newbie in Mathematica and would like to ask one simple question. Let's say I have matrix with some elements == -1 ...
0
votes
0answers
51 views
2
votes
2answers
408 views

3D plots with a continuous and discrete input [duplicate]

How can I plot a function with one discrete and one continuous input? Plot3D wants everything continuous while ListPlot3D and ListPointPlot3D want everything discrete. I would like be able to say ...
5
votes
1answer
201 views

displaying Laurent polynomials nicely

I have some 2-variable Laurent polynomials in $q$ and $t$, and I'd like to collect powers of $q$ and display them without using fractions, and to sort the terms by the power of $q$. For example, I'd ...
15
votes
2answers
239 views

Bug with SparseArray selector in Pick

Bug introduced in version 8 or earlier and fixed in 10.0 I have created a notebook with two cells. This is the content of the first: ...
10
votes
2answers
620 views

Applying non-Affine transforms to 2D polygons with textures

I am trying to create a vanishing point perspective transformation of 2D polygons, for example transforming the red polygon into the blue polygon: ...
3
votes
1answer
440 views

Is there the full Wolfram Language in Mathematica?

Today I read the new entry on WolframBlog with all it's nice little demos. I was realy interested in those with astronomic informations, but trying these with my own Mathematica I was irritated: ...
21
votes
3answers
840 views

Creating sculptural forms using graphics primitives

This is a question based on this answer by halirutan. Some amazing images can be created with this code, and I was wondering whether it was possible to extend the principle to different shapes. I ...
0
votes
1answer
588 views

Heat Transfer equation by numerical methods

I want to solve the following heat conduction equation using numerical methods: D[u[x, t], t] -alpha*D[u[x, t], {x, 2}] == 0 u[x, 0] == 1/(1 + x^2)^0.25, u[-10, t] == u[10, t] == 0, ...
1
vote
1answer
130 views

Creating hyperlinks from a list of file names

Suppose I use FileNames to get a list of file names. I know that it's possible to make a hyperlink using this kind of pattern.... ...
1
vote
1answer
110 views

Extracting a single weakly connected component from a network of many weakly connected components?

Hello Mathematica friends! I've got a network with thousands of edges and vertices, but not all in one connected component. I'm trying to extract specific connected components from the network, and ...
1
vote
1answer
164 views

How one can make the boundary of the regionplot smaller or bigger?

Suppose we have a regionplot as follows: ...
0
votes
3answers
178 views

Clean-up Code / Reduce variables

I'm writing a playing card simulator of sorts, and everything works fine, but some Modules use a disgusting amount of variables. For Example: ...
1
vote
0answers
101 views

Auto-complete for user defined functions [duplicate]

If I define a symbol in Mathematica, it doesn't show up in the autocomplete list that works for symbols in System. Test code: ...
1
vote
1answer
193 views

How to put a dodecahedron inside another dodecahedron?

I know how to put a sphere inside a dodecahedron but instead of a sphere I would like it to be another dodecahedron. How can I do it? ...
5
votes
1answer
68 views

Creating a function that can be called like the definite integral template (dintt)

The definite integral template takes 4 arguments as can be seen here: Is it possible to make a function that can be called in the same kind of way? For example is it possible to make this call a ...
1
vote
1answer
94 views

Matching variables with Subscripts yielding True and False

I am trying match variables with subscripts just returning true or false depending if pattern is matched. My try is to use Cases. However the following does not ...
4
votes
1answer
206 views

Modular surface of tri-focal Cassini curve ContourPlot3D missing feet

I am wondering why the following fails to cover the surface at points near $k = 0$. ...
1
vote
0answers
147 views

How to write my own interpolation method [duplicate]

I was comparing results of spline interpolation in Mathematica and C++/gsl-library Results of interpolation are different if I use ...
0
votes
1answer
72 views

Mouse motion makes frame disappear in Overlay of long ListPlots

Using M9, OSX 10.8.4, most parts of the Frame in the following overlay disappear (also partially occluding some FrameTicks) ...
2
votes
2answers
335 views

How to manipulate lists of parameters?

Suppose I have a function of a variable f, depending on some other parameters a and b, for ...
0
votes
2answers
306 views

Convert epoch seconds to date [duplicate]

I have got the following datetime from an API: 1395401384298 I am guessing it is in epoch miliseconds time (it should be one day in 2014) How can i convert it into a more readable String? I have been ...
0
votes
2answers
90 views

Multiplying a list and randomly re-assigning that list to a series of numbers

I'm trying to write a script that matches a particular element to a coordinate. Let's say there are 24 coordinates; and that fractionally a:b:c:d:e is 18%:18%:18%:18%:27%. Instead of matching 4 of a, ...
0
votes
1answer
253 views

Minimize: How to work with specific numeric types

This is a question about the use of symbols in Minimize and how to persuade Mathematica to treat them in a specific way (as integers or rationals) that I have not ...
13
votes
1answer
791 views

Image Processing: Edge detection of the tumor on tomogram. Сalculation area of the tumor

The task is to identify the image region of the tumor. I try to use example from documentation centre: ...
2
votes
3answers
223 views

How to create locked sliders with the ability of unlocking them?

This creates two locked sliders DynamicModule[{p = {2 π, 0}, r}, {Slider2D[Dynamic[r]], Slider2D[Dynamic[1 - r, (r = 1 - #) &]]}] How can I add a check ...
1
vote
0answers
30 views

Ignore $MinPrecision when using Print

I have a function that contains a For loop and sometimes takes several hours to run. It's important that I keep a high precision, and I insert ...
1
vote
2answers
254 views

Plot a function which depends on itself

How can I plot a stepwise function like f[a, t] = 10 Exp[-0.1 Sin[t]] for a > t and ...
3
votes
1answer
82 views

Pass Real32 to Mathlink

I've written a Mathlink program that is called from Mathematica 9. It works very well but currently uses double precision numbers in the C++ function. I've already replaced them with floats in C++ ...
0
votes
1answer
78 views

Implementation of a Hanning filter

I'm implementing a package for in-house signal processing. I wrote here a quite trivial function implementing a Hanning windowing of the signal. ...
8
votes
1answer
358 views

Inconsistent DistributionFitTest results?

In pondering this question, I used Mariana's function to generate the following data. ...
0
votes
1answer
143 views

How can I close a gap in a bar chart?

I have the bar chart below: My code: ...
4
votes
1answer
271 views

workbench: how to see values of global variables during debugging

Consdier the following package ...
1
vote
0answers
48 views

workbench: how to extract a piece of code into a function

For example assume that the following code is given f[x_, y_]:= Block[{a, b}, a = Sin[x]; b = Cos[y]; c = a + b ] and I want to change it ...
6
votes
2answers
152 views

How to select specific subvalues from a function definition

Consider: h[1][tag1] = 1; h[1][tag2] = 2; h[2][tag1] = 3; h[2][tag2] = 4; Is there a fast way to obtain downvalues for only h[1], or h[2]? For example ...
6
votes
3answers
963 views

Calculate mean of values in bins

Problem description: I have a list of $\{x,y\}$ pairs. I'd like to divide $x$ into equal[*] bins, say $bx_1, bx_2, \ldots$, calculate $\left<y\right>$ for every bin and then plot the bin values ...
8
votes
1answer
421 views

How to use Undocumented Functions Prism, Tetrahedron and Hexahedron

Taking a look at this question and this one, I checked to see if Mathematica really does not have a Prism primitive. To my surprise the function ...
1
vote
0answers
53 views

How to find discretezation error of NDSolve

Is there a way to find out how large the truncation, round-off, and other errors that occur from discretizing a differential equation are while using the default settings in NDSolve? Or would I have ...
17
votes
1answer
1k views

How does Mathematica understand branchcuts of the complex logarithm?

Say I have the function $f(x) = x \tanh(\pi x) \log (x^2 +a^2)$ where $a$ is some positive real number. Then it seems to be me that Mathematica when given such a ...
0
votes
0answers
38 views

Number precision in a list [duplicate]

I have list with elements: ...
8
votes
1answer
236 views

Speed up MinimalPolynomial

My Mathematica code runs slowly MinimalPolynomial[Sqrt[2] + Sqrt[3]+ Sqrt[5]+ Sqrt[7]+ Sqrt[11]+ Sqrt[13], x] runs slowly, but the Maple version ...
2
votes
1answer
107 views

How to create .ico file in Mathematica?

How to create .ico file in Mathematica? I mean the favicon images used for web sites. Directly using Export["file.ico", <some graphical expression>] does ...
4
votes
2answers
1k views

Intersection of surface with parallel planes

Consider the code (adapted from here) ...
2
votes
2answers
835 views

Trying to solve a differential equation with a piecewise initial condition

I am trying to solve $$u_t=\frac{1}{4}u_{xx}$$ $-\infty<x<\infty,\: t>0$ With the initial condition $u(x,0)=\phi(x)$ where $$ \phi(x)= \left\{ \begin{array}{lr} 1 & ...

15 30 50 per page