2
votes
2answers
359 views

About Argument of complex numbers

Suppose my z = x + iy Now, if y=0, then z = x i.e it becomes a real number So, logically ...
2
votes
1answer
200 views

How to compute a discrete histogram of a list [duplicate]

I'm trying to compute the discrete histogram of a set of values. By histogram I mean the absolute frequency a value appears on the dataset, by discrete I mean the values are from a discrete set, e.g. ...
1
vote
2answers
132 views

How to automatically put the part of a variable name after the first letter in symbolized subscripts?

So here is what I have thought: Use ToString and StringLength in order to get the number of characters in the variable name. If it is bigger than one, change variable name by putting everything but ...
2
votes
0answers
77 views

Assign variables from list inside With or Module

I have found that it is possible to assign variables from lists, as follows. In[1]:= r = {1, 2, 3}; In[2]:= {a, b, c} = r; In[3]:= b Out[3]= 2 However, if I try ...
0
votes
1answer
122 views

Reuse a dynamic list [duplicate]

Consider this Dynamic list ...
1
vote
0answers
105 views

why maxrecursion didn't work if I specify singularity in NIntegrate

I study sigularity specification and MaxRecursion in NIntegrate. And find something unusual. first I define a function δ[x_, y_: 1/100] := 1/π*y/(x^2 + y^2) ...
0
votes
1answer
129 views

How do I scale three independent variables in a Manipulate?

cross-posted on the Wolfram Community forum I'm trying to ilustrate the difficulties in assigning bins to a data set and then running a comparison of the bins against a binomial distribution for all ...
0
votes
1answer
211 views

Using Log when working with a time-series

I have a time-series list of stockA, which I call bas. I have taken the natural log of bas by using ...
1
vote
1answer
452 views

Interpolation Problem

I have the following list: ...
11
votes
1answer
461 views

Encrypt the password used for SendMail

I want Mathematica to send me an email when the computation is finished. To that end, I have a cell with SendMail[...] which I place behind my computation in the evaluation queue. The problem I have ...
5
votes
5answers
366 views

Creating partly filled disks based on percentage

I'm trying to create a function that returns a partly filled Disk, based on a percentage. So inputting 1 would give a fully ...
13
votes
3answers
504 views

Detecting and correcting gradational brightness variations in a grayscale image

I am trying to quantify the proportions of various components in a greyscale image (backscattered electron image of a polished rock sample). Here is the original image: ...
4
votes
0answers
86 views

Simplifying expressions involving Divisible

FullSimplify[ Divisible[p^2 - 1, 24] , Element[p, Primes] && p > 3] Should evaluate to True, but I get ...
3
votes
1answer
430 views

How can I commit files to Github by Mathematica?

How can I publish Notebooks to Github via using Mathematica? I'm on windows 8.1 x64, Mathematica 9. How can I upload the current notebook to Github? My function expected is: ...
2
votes
0answers
87 views

Counter assignments [duplicate]

I'm trying to create a specific outline format to match some course materials I am required to submit in a particular way. I know how to create auto-numbered cells using ...
2
votes
1answer
184 views

Errors when using ParallelTable inside a package

I'm developing a package that contains a function that requires evaluation of an expensive Table, so I use ParallelTable ...
0
votes
0answers
89 views

Unexpected result from InverseFunction

Given the following two equivalent inverse functions, why does one simplify (using inverse functions that are acceptable to me) and the other doesn't? Is there an assumption or setting I can give ...
2
votes
0answers
61 views

Setting Up Lightweight Grid On Multiple Clients Programmatically

I have a number of computers which all might need to use the same (client) configuration for the Wolfram Lightweight Grid at some point. I know that there are ways to programmatically set certain ...
6
votes
1answer
331 views

Importing DICOM images

When I try to Import individual DICOM (.dcm) files from http://www.osirix-viewer.com/datasets/ datasets I can see the Elements listed in example files, ie: ...
7
votes
2answers
434 views

Is there any fast way to solve a quadratic matrix equation in Mathematica approximately?

Let the square nonsingular matrix $M$ is a given convergent matrix. What are the best scalar values for $\alpha$ and $\beta$ (in the real numbers domain), at which the following quadratic matrix ...
1
vote
0answers
45 views

Best way to power series expand in multiple variables? [duplicate]

A power series expansion of a multivariate function can be performed with the Series command, which performs each expansion consecutively. The results can be a bit ...
0
votes
0answers
124 views

How to define a variable as a function of another variable?

I want to define a variable q which is a function of t. And I want to define another variable ...
1
vote
1answer
422 views

How to simplify Sqrt[1/x] Sqrt[x]?

In my expression, there appear terms of the form A^(B Sqrt[1/C] Sqrt[C]). Mathematica doesn't realize that this is just simply ...
1
vote
1answer
246 views

Linear Integer Programming with absolute values in objective function

I'm trying to solve a problem of the form $$ \left|a_{1,0}+a_{1,1} x_1 + a_{1,2}x_2\right| + \left|a_{2,0}+a_{2,1} x_1 + a_{2,2}x_2\right|\to\min, $$ where $a_{i,j}$ are real-valued coefficients and ...
6
votes
2answers
130 views

Consecutive Print to target same output Cell

Is it possible to conveniently direct the output of consecutive Print statements to the same output without actually accumulating the output in a temporary string/variable. This would be useful in ...
2
votes
3answers
374 views

Making a multiple choice button

I've written the following code to create a multiple choice button that takes an arbitrary number of answer options and will assign a variable true/false depending on whether or not the correct choice ...
3
votes
1answer
181 views

Symbolic Integration of Special Functions

Sorry in advance if this formatting comes out strange, this is my first question! I can't find a way to integrate, e.g., a function of the Hermite polynomials for general (still integer) order. For ...
5
votes
3answers
259 views

BSplineFunction derivatives wrong if using weights?

In my work, I make heavy use of non-uniform rational B-spline (NURBS) functions, defined using the function BSplineFunction with the option defining ...
8
votes
2answers
449 views

Why Fourier doesn't show me the peaks?

I'm trying to identify the frequencies in my time history samples, and I can see a frequency in the time history, but can't see it in its Fourier transform. Here it is : the sample data: ...
3
votes
1answer
224 views

ParametricNDSolve and Constraint satisfaction problem

I am trying to find the values of two parameters that allow for a specific result of my differential equations, under different initial conditions. Given a system of equations: ...
2
votes
1answer
180 views

Writing CSV or alternative

I've tried to export a list to a CSV file. I shut it down after about 20 minutes of processing. The list has 261,000 rows and 30 columns. I finally exported it to a txt file and its size was 111 ...
3
votes
1answer
169 views

Importing a ragged array while ignoring rows that start with “#” [duplicate]

I am new to Mathematica, and I find that there may be a lot of ways of doing this. I was wondering which one might be the most general. I am importing data from ...
0
votes
1answer
444 views

Can graph interpolating function, but not use it. Any thoughts?

When solving a system of differential equations numerically, I get two interpolating functions. I can graph both of these, but when I try to evaluate either of the functions at a point, it just spits ...
3
votes
0answers
154 views

How to batch run Mathematica code from Python?

I have this notebook: ...
1
vote
2answers
145 views

Symbolic integral with distributions

Why is Integrate[ HeavisideTheta[1 - x^2] DiracDelta[1 - x^2] , {x, 0, 1} ] (*0*) It should be HeavisideTheta[0]?
3
votes
2answers
143 views

How to produce multiple plots from a multiple data sets

I have a number of lists and want to plot all of them vs each other. E.g.: l={ {a,2,5,4,6}, {b,4,6,6,2}, {c,2,8,3,5}, {d,1,5,2,5} } Now I want multiple plots ...
9
votes
1answer
885 views

Measure length and diameter of objects in an image

I am new to Mathematica, and I am trying measure length and diameter of rectangular objects in an image. I wanted to fit rectangles in the objects, and then get the values. Can I do that with ...
7
votes
1answer
250 views

How to do computations simultaneously in multiple notebooks? [duplicate]

I have a Mathematica script which takes a few hours to run. I want to be able to open another notebook while it's running and do some other computations. I have enough many cores on my computer for ...
4
votes
2answers
366 views

Why doesn't Mathematica divide out the Kelvins?

I thought I understood Mathematica V9 units. However, I can't get these numbers to plot, or even to come out to a nice clean unit of mass (say grams). The Kelvin's ...
5
votes
0answers
72 views

Does one need to be careful about loading multiple (many) contexts or packages in the same session?

I have a number of large pieces of precomputed data which I am considering putting into individual packages in order to load them (via DeclarePackage) and unload ...
5
votes
1answer
127 views

Remove Removed From Output

How might I remove Removed[..] symbols from the output of an expression? For example Clear[b]; b := Sin[a + a]; Remove[a]; b ...
0
votes
2answers
174 views

How Do I Upgrade a Show to a Manipulate?

I'm trying to ilustrate the difficulties in assigning bins to a data set and then running a comparison of the bins against a binomial distribution for all values- n, p. The code I have so far is ...
22
votes
2answers
1k views

Export to Google Spreadsheet with OAuthAuthentication

Context I'm trying to setup a connection between Mathematica and Google Docs. Specifically, I would like to be able to export data to a Google Spreadsheet (Note: if the spreadsheet is public it's ...
1
vote
1answer
81 views

Increase Size of InputForm in Manipulate

I would like to set a variable equal to a copy n' pasted list, all within the Manipulate[] environment: Manipulate[list,{list,0}] I would like to view and edit ...
0
votes
2answers
195 views

Interpolating a ParametricFunction

Original domain of my independent variable t is 0 to 10 nanometers, but in Mathematica (as in most numerical software), it's good idea to solve differential ...
4
votes
3answers
260 views

make specific cluster

I have set of coordinates. I want to make clusters in which every point is within 1.5 distance unit of it's neighbor. ex of point coordinates: ...
0
votes
1answer
136 views

Understanding output of multivariable integration

I'm new to Mathematica and I'm trying to integrate this function: ...
8
votes
1answer
151 views

After modifying expression, new result doesn't replace old one

After I modify and re-evaluate an expression, the new result doesn't replace the old one. Rather, what happens is that the old result gets pushed down and Mathematica displays the current result at ...
4
votes
2answers
180 views

Using two color functions in a MatrixPlot

I'm trying to use two color functions within one MatrixPlot in Mathematica. Is it possible to do this? For example, using a very simple matrix: ...
6
votes
2answers
359 views

Sierpinski carpet with GraphData

Is this graph in the list among the so-called "standard" structures used in GraphData? However, I have not found, yet, anything like "Carpet" or "Sponge" in the ...

15 30 50 per page