6
votes
1answer
470 views

Forcing Mathematica to use certain simplification rule

I'm trying to force Mathematica to use following transformation function ...
2
votes
3answers
159 views

Any way to reverse span and join two span in Mathematica?

I port a matlab code to mathematica. In the original matlab code, I use ":" to pick up the desired elements in a matrix. In mathematica, I find in the documentation that the span operator is ";;" (...
2
votes
1answer
171 views

How to embed graphic-element-specific metadata within a Graphics object?

One of the most crucial requirements for rich, interactive scientific graphics is being able to "annotate" individual graphic elements (e.g. the data points of a scatterplot, the individual curves in ...
19
votes
4answers
2k views

Implementation of smoothing splines function

I have some problems in writing a module for spline smoothing. Actually, I have been trying for about two weeks. My listing is here: ...
6
votes
1answer
99 views

Where does Documentation Center introduce the basics?

While helping a user who mistakenly thought that log rather than Log was the correct built-in function name, I included a gently-...
0
votes
2answers
317 views

how to export nested list

I have a ListPlot where I extract my data again using pts1 = Cases[(*I put my list plot here*), , x_Point :> First@x, Infinity]; which gives me the data as ...
10
votes
3answers
3k views

Keyboard shortcut to evaluate notebook

(If this is entirely trivial, although I couldn't find an answer as much as I searched the archives, I will delete the question.) How could I add a keyboard shortcut to evaluate the entire notebook ...
2
votes
2answers
295 views

Highlighting a single Period of a Trig Plot

How do I highlight a single period of a trig function say by using color and/or thickness when the graph itself extends further than just a single period? Thanks...Gregory Lane
0
votes
2answers
102 views

Elegant way to transform formula with sum into code

I have this formula, and many other which contains sum, I am perfectly able to do the computation over a list, however to do this I need to do it in several manual steps. Therefore, I wonder if there ...
3
votes
2answers
372 views

How to replace subscript symbols

I have an expression with subscripted variables. I would like to replace all those terms with other symbols. For example, $P_1 + P_2^3 \rightarrow P1 + P2^3$ I used the following code but it doesn't ...
0
votes
2answers
2k views

Solving a system of nonlinear coupled ODEs

I tried using NDSolve to solve the following system of equations: ...
-5
votes
1answer
982 views

Plotting a piecewise parametric curve [duplicate]

I have no idea how to plot the following piecewise parametric curve in Mathematica; ...
0
votes
2answers
91 views

Generate higher dimensional box vectors

I'd like to generate integer vectors in $\{-M,-M+1,\dots,M\}^n$, where $M$ and $n$ are parameters. For a fixed $n$, say $n=3$ for instance, I only know I can use ...
8
votes
1answer
150 views

How to always display current section identifier (number, name) in notebook?

Because I find myself relocating frequently within a long notebook divided into sections, subsections, & subsubsections, I would like to display the identifying information for the section, etc. ...
3
votes
5answers
663 views

Elegantly adding two differently spaced lists of ordered pairs $(x, y)$

Suppose that I have two lists, list1 and list2, of ordered pairs $(x, y)$. The two lists are differently spaced in $x$; some ...
5
votes
3answers
780 views

Mixing Text and Formulas

I'm trying to do some typesetting in which I mix text with formulas. The Mathematica documentation has a section titled "Mixing Text and Formulas" which pretty ...
1
vote
0answers
199 views

NDSolve error when solving pde [closed]

I am trying to calculate speed of viscous fluid in a rotating hollow sphere. The sphere is rotating round z axis. The fluid is incompressible. I used Navier-Stockes equations. The only boundry ...
7
votes
1answer
354 views

Jumps in NDSolve results

I need to compute using NDSolve routine, some function $F(x)$, having two possible values $F_1(x)$ and $F_2(x)$ depending on whether the argument exceeds some ...
3
votes
3answers
292 views

How to partition a list into sublists in a similar way to Histogram

I have a list of list as below (I show part of it) ...
5
votes
2answers
369 views

Ranking a vector containing ties

How can I rank a vector such that the ties are replaced by their middle ranks. For example, {1, 2, 2, 3}. I want to rank this vector but the ties must be replaced ...
5
votes
2answers
1k views

Frequencies represented in a DFT list (Fourier[])

I have a sound sample (sample rate: 44100). When I have a list l with n successive elements from the sample, ...
0
votes
1answer
106 views

Missing some packages?

I am trying to use a program written by someone else. When I run the program, I am supposed to get a number as a result, however, what I got is some complicated result with "InterpolatingFunction" ...
4
votes
1answer
242 views

How to Use ProbabilityScalePlot with Censored Data?

I am trying to reproduce a ProbabilityScalePlot of censored data shown here (see Sample Analysis Plot). Here is my Mathematica code. First I deal with the uncensored case. ...
8
votes
1answer
2k views

Why does Mathematica order polynomial forms in reverse from traditional order?

I could very well be missing something obvious, but this has always bugged me with Mathematica and I don't know why it does it or how to fix it. If I enter any polynomial, say, x^2 + x - 1 for ...
3
votes
4answers
8k views

Filling Between Curves [duplicate]

I want to fill in the region between the curves. So far I have this: Plot[{x + 7, 9 - x^2}, {x, 0, 1.5}, Filling -> {1 -> {2}}] But I want something ...
5
votes
1answer
1k views

Automatically dealing with “disable dynamic updating”

I'm programmatically creating notebooks containing dynamic content. When a new notebook is being created, a window pops up: I then manually click on "Continue" and it will create the notebook. The ...
5
votes
2answers
215 views

Using absolute locator coordinates in Manipulate

In this simplified code below, I'd like to display two plots within Manipulate, and use the Locator controltype to set the value ...
0
votes
2answers
444 views

How combine pure functions of several slots? [duplicate]

How can one define in a functional way a 1st-order linear differential operator involving several independent variables that can then be applied to a function of that many variables? Consider an ...
4
votes
2answers
183 views

Lost and found Tooltip in ListPlots

I came upon a strange Tooltip behavior in ListPlot and ListLogPlot. Consider the following ...
2
votes
3answers
506 views

FrameLabel and OverTilde

What is the problem with this expression inside ListPrint? OverTilde generates here a mess: ...
-4
votes
1answer
211 views

How to use all the kernels efficiently

We build a project with Java and Mathematica technologies. For this project we have written a bunch of functions in Mathematica and integrated some functions in one ...
3
votes
1answer
253 views

Prevent mathematica from simplifying

How can i prevent Mathematica from automatically simplifying the expression Sqrt[a/b]? In case a=1 and ...
0
votes
0answers
92 views

Master Document [duplicate]

I'm wandering is there Master document concept in Mathematica so that the counter will be counted sequencially in master document. Mean file in child document, the counter follow from master document. ...
-2
votes
1answer
95 views

Calculations in sequence

I have a this calculation, as you can see it is doing a calculation on each list, from list 1 to list 4 of the datafile. My problem is that using Mapthread to do this calculation does not work because ...
7
votes
1answer
117 views

Need a generalization of RootApproximant to recognize linear combinations over algebraic numbers

RootApproximant does a very good job when I need to recognize an algebraic number and when enough of its digits are known (or even when an unlimited number of ...
2
votes
1answer
179 views

Elegant transformation of various rules to strings, {f[z_] -> y} becomes “f = @(z) y”

Assume that I have some function for transformation mathematica expressions to strings. For simplicity, just assume it is an identity: ...
21
votes
2answers
920 views

Is there a Mathematica barcode reader?

Is there a Mathematica barcode image reader (much like TextRecognize) that allows the user to enter an image of a barcode and then read it to get an output string?
4
votes
1answer
97 views

Is is possible to use regular expressions in the search and replace diaglog?

I find myself wanting to be able to do regular expression search and replaces in the Mathematica gui over and over again. Using a regex capable editor (such as vim), I could do something like: ...
3
votes
1answer
137 views

Handling of non-file URI

According to the manual, Hyperlink “represents a hyperlink that jumps to the specified URI when clicked”. OneNote produces hyperlinks that begin with onenote://. In Mathematica, creating a hyperlink ...
1
vote
1answer
151 views

Creating a Dynamic MSSQL connection

Hello i am trying to create a notebook that automatically connects to a database on MSSQL server and would then query this to create a sort of personal report. I have connected to this database and ...
2
votes
1answer
124 views

Cell format for screen headers

If one picks the menu option Format->Edit Stylesheet and then one opens the "Default.nb" link, the newly opened notebook has a header that reads "Deafult.nb" style definitions. In one navigates down ...
3
votes
1answer
267 views
5
votes
1answer
905 views

How to scale Histogram counts with the value of bin center?

I am analyzing some variates from a steeply falling power-law distribution (approximately with a power index -4) using Histogram[data, Automatic, "PDF"] While ...
3
votes
3answers
633 views

Image3D and Graphics3D

also I guess that the topic was tackled in Combining Image3D and Graphics3D. My question is quite similar: How do I match the coordinate Systems of Graphics3D and Image3D? Here some code: ...
1
vote
3answers
471 views

TrueQ - Test of inequality [duplicate]

I want to look if a term is <0,>0 or ==0. What is wrong when I write ...
3
votes
1answer
95 views

What is the syntax to combine conditions and options? [duplicate]

How can a condition and an option be written on the RHS of a function? I.e. ...
3
votes
1answer
256 views

Is there a way to simplify this replacement rule

I have a rather big expression which contains many sums of form q x + w y. I know that y is much smaller than ...
0
votes
1answer
928 views
0
votes
1answer
129 views

How do I generate arbitrarily many integration bounds? [duplicate]

I have a multiple integral of the following form: $$\int_{-\infty}^\infty \cdots \int_{-\infty}^\infty \exp(-\sum_{i,j=0}^n x_i A_{ij} x_j) dx_1 \cdots dx_n $$ Here, $A$ is a square matrix and $x_1 \...
0
votes
1answer
119 views

Problem with List Dimension Outer Map [duplicate]

I am currently handling a big list which has the following dimension: {6, 3, 4, 2, 2, 1, 8} where the last number 8 represent a ...

15 30 50 per page