3
votes
2answers
15 views

Removing spurious parenthesis in `TraditionalForm`

I don't understand the following behavior (in v 9.0.1) of TraditionalForm regarding insertion of parenthesis. Let us start with the a definition for ...
0
votes
0answers
12 views

Can NIntegrate be used with the Levin method in several dimensions?

I've got some data in the form of an interpolating function. It's a function of three variables, $\rho(x,y,z)$. I'd basically like to integrate this with some phase over a cube of known size, like $$ ...
3
votes
0answers
23 views

Calculation the eigensystem of a matrix containing very small numbers

I'm dealing with a matrix containing very small numbers like 10^(-370). Whenever I'm trying to calculate the eigensystem of that matrix, it takes too much time, though the matrix size is not big that ...
0
votes
0answers
51 views
0
votes
0answers
26 views

Can you regroup terms into a sum?

Is there a way to regroup terms into a sum? I mean, for example, if I have the sequence S_1S_2+S_2S_3+S_3S_4+S_4S_5 I would like to get the form ...
0
votes
1answer
32 views

Function of a random variable

Here is a probability density function (PDF) pdfq[q_] = C q^(4 n ν - 1) (1 - q)^(4 n μ - 1) $$P_q(Q=q) = C q^{4 n\nu - 1} (1 - q)^{4 n \mu - 1}$$ I'd like to ...
6
votes
3answers
89 views

Operate over list of pure functions

I have list of pure functions (All functions are InterpolatingFunction) i.e {{a, b}, {c, d}, {e, f}, ...} and I would like ...
0
votes
0answers
31 views

Solving an equation for rational modulus 1

I want to solve an system of equations of the form $$\prod_{i=1}^n x_i^{M_{i,k}}=1 \qquad k=1,\ldots,n$$ $M_{i,k}$ integers. This is basically a system of polynomial equation and I can just use ...
6
votes
1answer
64 views

What is the right place for user-defined init.m?

What is the right folder to put a file init.m which is run after all other init.m files applied by the various components of Mathematica have done their job? I would like to use it to do something ...
4
votes
3answers
72 views

Change string date/time to be understandable for mathematica

I'm trying to convert a string of a data and time to be understandable for mathematica (I want to make time related plots). However, I can get my head around how to do this. For example: ...
1
vote
2answers
36 views

Generate a sequence of names such as a1, a2, a3 [duplicate]

How do I generate the sequency {disp1, disp2, disp3, ...}? I tried the following but it didn't give me what I expected: ...
0
votes
0answers
24 views

How to make a real number parameter go 2 decimal precision? [duplicate]

im new at community and im starting with mathematica I am now having a trouble with something very simple problem which for many of you might be really obvious In documentation "N" suppose to give me ...
0
votes
0answers
32 views

Autocorrelation issue [on hold]

I am analysing time series and want to know if it is autocorrelated. I use AutocorrelationTest[data, 1] and get The data contains ...
0
votes
0answers
17 views

Mathematica 10 Endnote 7 with mac

Given the new updates, are EndNote 7 and Mathematica 10 compatible in mac?
1
vote
0answers
30 views

How to Plot with different styles different InterpolatingFunction [duplicate]

Im sorry for this question I'm new and it may be a stupid question, but I can't find nothing specific. I have these differential equations and NDSolve give me ...
0
votes
0answers
38 views

Exporting Code to pdf

I want to export Mathematica Input and Output code to pdf (for usage with Latex). I select the cells and use "Save selection as". However, the font size of the pdfs is to large for Latex usage and if ...
0
votes
0answers
22 views

Can you import/include a header file in Mathematica? [duplicate]

I use a lot of physical constants and would like to put them into an include file (like blah.h in c) and import this / include it at the top of my worksheets. Is this possible? Thanks.
0
votes
0answers
31 views

Plotting function with small values in Mathematica [on hold]

I've got an issue in Mathematica, just can't figure it out, I've looked on any reference I have available. I am doing something basic, need to plot two functions together. However, my plot shows ...
0
votes
0answers
39 views

NMinimize ignores constraints

I have a problem with NMinimize - I try to minimize quite a complicated function and use a couple of constraints (the way it is shown in the documentation). Now, ...
4
votes
2answers
407 views

How to create a function like in Python

I want to call a function that would perform a function rather than assigning an expression to them. I.e. ...
1
vote
0answers
39 views

Simultaneous fitting to multiple data sets with multiple variables and some common parameters

I am trying to fit two data sets to a function model described below which share a few common parameters. Say I have two functions with some common parameter(s) ...
0
votes
1answer
49 views

How to find all roots of a complex number [duplicate]

Finding all roots, and I know there are four f them, of this (1 - i)^(1/4)
2
votes
2answers
115 views

Mathematica data structures for analysis [on hold]

I'm starting to learn Mathematica and one thing that has been bugging me is the apparent lack of a good structure for keeping data and metadata for analysis. Something along R's ...
1
vote
0answers
37 views

Is there a summation notation for the sum of products made two by two? [migrated]

I have the following expression: $$x_1x_2+x_1x_3+\dots+x_1x_n+x_2x_3+x_2x_4+x_2x_5+\dots+x_2x_n+\dots+x_{n-1}x_n$$
0
votes
0answers
51 views

Why does my code produce NDSolveValue::ndnum?

I keep getting the error shown below. It appears to be valid, but I am not sure why my I am getting it. ...
0
votes
0answers
22 views

using numerical value of NDSolve solution [on hold]

I have two differential equations solved using NDSolve ...
0
votes
0answers
28 views

Minimization of a non-linear objective function subject to linear constraints

I have solved a linear program in Mathematica using the LinearProgramming function with arguments of the form LinearProgramming[c,m,{{b1,s1},{b2,s2},...}] i.e. ...
1
vote
1answer
73 views

Mathematica 8 remove black background from image

How do I do that in Mathemtaica 8? I have found on this site many options like RemoveBackground[], but they don't work in Math.8. Are there any options? Here is ...
4
votes
2answers
81 views

Why doesn't FullSimplify simplify expressions with DiracDelta?

I want to simplify a complicated expression with some Dirac delta distributions, but FullSimplify does not do what I want. Specifically, I want ...
4
votes
2answers
104 views

Manipulate showing the trajectory of a particle

I'm trying to plot the trajectory of a particle: ...
6
votes
1answer
72 views

How do I format the output to include the function definition?

To explain, I do most of my probability homework in Mathematica, and use the typesetting built into Mathematica to finish answers. Often, I want to output a function as the answer to a problem, but I ...
5
votes
2answers
198 views

How to generate a chirped signal

As there is no ChirpSignal function in Mathematica, can anyone tell me how to write a custom function to generate a sinusoid with a frequency that changes ...
1
vote
1answer
36 views

How to take derivative of a tensor leading to kronecker delta? [duplicate]

I'm trying to write a Mathematica program to find derivatives such as the following simple example: Could you please help?
5
votes
1answer
173 views

Why doesn't this pattern work? [on hold]

I want the in-built function Count to count the elements in a list which are greater than a value. Example: Count[{1, 1, 2, 3}, (# > 1.5) &] Why doesn't ...
1
vote
3answers
42 views

`Solve` with variables as single vector

Say I have a set of equations where the unknown variables are the elements of a vector $c=(c_1,c_2,\ldots)$ and want to solve it for $c$. Is there a way to do this with ...
2
votes
1answer
59 views

Compile with modification of arguments' values

Is it possible to compile while changing the value of the arguments the function receives, instead of just creating new variables, and then returning those new variables,i.e., is it possible to pass ...
10
votes
0answers
64 views

Bug(?) in version 10: Tooltip and ListPointPlot3D

Bug introduced in 10.0.0 The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
1
vote
0answers
44 views

How to use a C compiler without having SystemModeler

In this question the answer given implies that I must compile a certain function. When I try to compile I get the error A C compiler cannot be found on your system. Please consult the ...
3
votes
2answers
77 views

Find all roots in range

Is there any way to check for all roots in a range? Jens' findAllRoots function is pretty good, but runs at approx. 10% of roots missed when I ran a quick check on ...
4
votes
2answers
339 views

Colorize Grayscale Image

I have a grayscale image that contains two objects. The grayscale pixel values can be divided into three intervals where two of them represent objects and the third represents the background. The ...
2
votes
1answer
30 views

Unprotect fails the first time, works on second pass

I am redefining some of the standard math functions. I know this is dangerous, so I am trying to be extra careful. (For instance, in the redefinitions, I make sure to only match a custom head) The ...
4
votes
1answer
53 views

How can I use multiple Textures in Graphics3D

I am creating a Graphics3D object for a box using 6 Polygons (1 per side). I can use one single Texture on one or more sides but I can not find a way to use different Textures for different sides of ...
1
vote
2answers
38 views

Using conditionals to check if LinearSolve found a solution

Is there some way to check if LinearSolve found a solution using conditionals in Mathematica 9? I need to solve a large number of linear equations, but I am only interested in the cases where there ...
1
vote
0answers
72 views

ListContourPlot in V10

It seems that I obtain different results when using ListContourPlot under V9 and V10. Using this datafile http://pastebin.com/2p4ew0NJ (modified to use pastebin), ...
1
vote
1answer
39 views

Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the ...
0
votes
2answers
53 views

How do I get a Do function to create a list?

I have a Do function which gives me a column of expressions. How can I get the Do function to give me these expressions in a list. i.e The do function gives me this: a b c d I would like it do give ...
0
votes
1answer
58 views

Rotate points by 60° in 2D

I wrote this code, to rotate a list of points 60° about the first point in the list in 2D, but Mathemtica says: "Recursion depth of 1024 exceeded."
6
votes
1answer
100 views

Vertex displacement/merging in graph?

Given a Graph such as the one produced with the following code ...
2
votes
2answers
80 views

How to define multiple functions using a for command

Let's say I want to plot 10 graphs of those following functions. Since they are recursive functions, I cant make a table with 10 different initial conditions because Mathematica stores each value ...
2
votes
5answers
189 views

How to join two strings one of which is Subscript?

If I write this one str=Subscript["x","y"]; StringQ[str] False How can I get str as string?

15 30 50 per page