1
vote
1answer
140 views

How do you solve a linear equation of matrices? [duplicate]

The function Solve works fine for scalars: In[]:= Solve[A x - x B + C == 0, x] Out[]= {{x -> -(C/(A - B))}} When using matrices however, ...
0
votes
2answers
63 views

Applying a window over a list

The window functions state that they tread over lists, but when I try to do: HammingWindow/@list, I do not get the expected results. What is the best way to apply a window over an arbitrary length ...
2
votes
1answer
59 views

How to enlarge a specific part of a graph using Plot Command? [duplicate]

How to enlarge the closed curves of any Graph and Show them in a separate Graph within the ...
0
votes
0answers
44 views

Eigenelements of conductivity equation

I am trying to calculate the eigenvalues and eigenfunctions of the conductivity equation in an annulus. In particular I am looking for $(\lambda, u)$ s.t. $$ \begin{cases} \Delta u = \lambda u & ...
4
votes
2answers
68 views

Why is `FindCycle` crashing for this graph?

I'm working with a directed graph, previously mentioned in Exporting a high-resolution GraphPlot of a very large graph (65,536 nodes). It can be generated with the following code: ...
7
votes
1answer
148 views

Is it possible to get the (x, y) position of nodes in a `Graph`?

Given a graph... RandomGraph[{20,40}] ...is it possible to retrieve the (x, y) coordinates at which the nodes are drawn? ...
1
vote
1answer
106 views

Evaluate pure function through round brackets

In have some matrices of pure functions or numbers which I multiply by other matrices or vectors. I would like the functions to be evaluated in the result, but all that I get is something like this: ...
6
votes
3answers
214 views

What's wrong with naming a rule?

Please have a look at the code below. The second Manipulate uses the name rl of the replacement rule given in the first line, ...
1
vote
2answers
66 views

Recreating a ContourPlot3D using points

Let's define a three-dimensional surface ...
0
votes
0answers
26 views

PolynomialExtendedGCD in 2 variables

Consider a field $R$ and the ring $A=R[y]$. Consider two polynomials $g,h\in A[x]$. I want to obtain $d=\gcd(g,h)\in A[x]$ and two polynomials $s,t\in A[x]$ satisfying the Bézout relation: $sg+th=d$. ...
5
votes
1answer
97 views

FInding outliers in multiple dimensions

I'm working on dataset which isn't normally distributed.which contains three dimensions like cost, discount and profit I'm trying to find outliers in all these dimensions. I used z score to find ...
0
votes
1answer
35 views

Option for Simplify command in mathematica

What does Simplify[%[[1]], %[[2]]] mean in following code? I mean [[1]] and [[2]] exactly what does refer to? ...
1
vote
1answer
103 views

Factoring an arbitary variable in mathematica

Imagine we have a equation like this gf= 1 + (a3 - a1 x)^2 w1 + (b3 - b2 x)^2 w2 how can I reach the following equation ...
0
votes
0answers
49 views

Generating random numbers using Gaussian distribution in a code and changing standard deviataion in increaments [on hold]

I am working on the following code, which calculates mean2 after taking mean/average over 100 realization of the code with each time 10 random numbers generated using Gaussian distribution. Currently ...
1
vote
1answer
51 views

Is this the right way to use for loop [on hold]

Is this the right way to use for loop in order to find the sequence of $x_n$ ...
-2
votes
0answers
72 views

unordered lists with maximum dispersion [on hold]

As you can implement the following I have a list $$L = {p1, p2, p3, p4, p5 ........ pn}, n <50$$ I need cluttering and print this list 4 ...
0
votes
0answers
68 views

Boundary conditions for NDSolve

I get the following message: Boundary values may only be specified for one independent variable. Initial values may only be specified at one value of the other independent variable. >> from ...
0
votes
0answers
39 views

Getting DSolve to return different solutions [on hold]

I am Using 10.0 I am trying to solve the following ODE: $$ \frac{d^2 \psi}{d\theta^2}+ \nu \psi =0$$ , $$\psi(0)=0$$,$$\psi(3\pi/4)=0$$ and Mathematica only sppits out the trivial solution PS: I am ...
0
votes
0answers
28 views

How to remove a hold from a result obtained by equating a partial derivative to 0? [on hold]

I have a function g(x,y). I want to set its partial derivative by $y$ equal to 0, obtain an expression depending on $x$ and use it in further calculations. However, the code I am using puts a hold on ...
0
votes
0answers
58 views

Product of Two Functions [on hold]

I wrote a little messy conditional probability distribution. In the output, however, the numerator shows like p^2 (A) (B|A), rather than ...
8
votes
3answers
210 views

Deriving a PDF for an annulus distribution

I would like to derive the PDF for an ''annulus'' type distribution, defined by the parameters $\theta\sim U(0,2 \pi)$ and $d\sim N(0,\sigma)$; where $\theta$ is the angle round a circle of radius ...
0
votes
0answers
31 views

Compute the Breslow-Day statistic in Mathematica [on hold]

How would one compute the Breslow-Day statistic in Mathematica? Is it part of an existing package or can it be derived from one?
5
votes
0answers
91 views

Trouble exporting graphics to SVG (or PNG)

I'm trying to export a Graphics object to SVG (or, failing that, PNG). The graphic is a chart of ~1000 simple geometric "configurations"; below is a small excerpt ...
5
votes
1answer
43 views

KaryTree of Text .csv and Correlation

How can I make a KaryTree of this raw-data (raw-data at the end of the question): This is is data from a political survey in which I ask 5 questions with the following possible answers: Q1: 'Y'= ...
4
votes
1answer
180 views

Mathematica gravatar engine?

This question asks about making gravatars in Mathematica, but the accepted answer is just a wrapper around the gravatar.com service. Is there an open source Mathematica engine that performs the ...
1
vote
1answer
41 views

Cartesian coordinates inside Spherical function

I would like to write a function that draws a graphic object and its projections along the x,y and z axes. I specify the $r,\theta, \phi$ of the object and an arrow and it's dashed projections are ...
0
votes
0answers
19 views

How to handle DLL dependencies between .NET dll and non-.NET dll's

I think my problem arises because I am successful with loading a .NET assembly, creating an instance and calling methods from a .NET dll. Certain methods, however, call methods from other non.NET ...
0
votes
0answers
41 views

Integrate fortran function into Mathematica

I was trying to use Fortran function in Mathematica. I was following mainly this answer . My Fortran code looks like this: ...
-1
votes
1answer
50 views

CompiledFunction::cfsa Argument x at position1 should be a machine-size real number [on hold]

I have a compiled function: g:=Compile[{{x, _Real}},...] and call g through an interim function: g2[x_?NumericQ] = g[x] If ...
0
votes
1answer
29 views

Series Soln False error [on hold]

When I try to define my equation : sys3 = {y'[x] == 2 y[x]/(1 + y[x]^2) - Exp[y[x]]/(1 + Exp[y[x]]), y (0) == 1} OR ...
1
vote
1answer
31 views

How to return multiple types in APIFunction?

I'd like to publish an api that returns an image as well as a number, but it seems that the docs for APIFunction specifies only a single possible format type: Here's an example to play with: ...
-1
votes
1answer
38 views

rescaling X axis

I have a pretty simple code, working fine and producing a plot that is ALMOST what I desire: ...
1
vote
1answer
33 views

A question on JordanDecomposition in Mathematica

How can I have Mathematica show me also the inverse matrix of the similarity matrix of JordanDecomposition of a matrix? Obviously I need to use here the ...
1
vote
1answer
40 views

List of Inequalities in RegionPlot with different colors [duplicate]

Starting from the example of the Documentation: RegionPlot[{x^2 < y^3 + 1, y^2 < x^3 + 1}, {x, -2, 5}, {y, -2, 5}] Which gives a nice plot with two ...
0
votes
0answers
30 views

differentiating an integral [on hold]

I am new to Mathematica. i hope to have the software next week so please excuse the unusual syntax. p(y) means p is a function of y. u(p) means u is a function of p . p(x) is the value of p when y=x ...
3
votes
3answers
126 views

How to obtain the coordinates of the intersection line of two surfaces?

I can plot the intersection line of two surfaces $f$, $g$ by using: ...
0
votes
0answers
26 views

Plot3D gives an empty box [closed]

I have two questions. I am trying to 3d plot a function like in the image below. It gives an empty box displaying no results. I tried adjusting the graphic qualities, but it does no solve the ...
1
vote
2answers
71 views

Double sum in mathematica

It may look like a stupid question, but I was really confused by how double sums works in mathematica: After simplification, the function actually has nothing to do with n2? Also, when I manually ...
0
votes
0answers
17 views

Measuring space complexity?

I like using GeneralUtilities function BenchmarkPlot for estimating time complexities, is there something similar for ...
0
votes
1answer
41 views

Plot for function that calculated direct with while, but is piecewise

For this question Use of {FOR, Do, If,Plot} that ..., I wrote this code: ...
5
votes
1answer
43 views

Run several input cells in parallel

I have a notebook with several input cells that produce data which is then plotted into separate graphs. Since I do not want to save the results, because it makes the file huge, I keep the ...
3
votes
2answers
124 views

Definite integration in mathematica

I tried to integrate the following in Mathematica. $\int\limits_{-\infty}^\infty\cfrac{\text{e}^{\text{i}ax}}{x^2-b^2}\text{d}x$ where $a,b>0$ The analytical result is well known. ...
3
votes
1answer
93 views

To style Sound object

While doing some signal processing research my aesthetic feelings were heavily struck by following output: The problem here is that 211.96 s label is partially ...
1
vote
1answer
79 views
4
votes
1answer
51 views

Multiple pattern test in the definition of a function

I have a very simple question, and I'm sure there is a way to do this but I cannot find it: if I want to create a function that's defined only for matrices, I can do it like this: ...
1
vote
2answers
85 views

Plotting logistic maps

I have a question about plotting in Mathematica in general, and this particular recurrence relation as an example: $\qquad x _{n+1} = rx_{n}(1-x_{n})$ How can I plot the following plots as shown ...
0
votes
0answers
20 views

Make an existing solution for monitoring parallel jobs robust against dying kernels

Is there any chance to make the solution by @David here http://mathematica.stackexchange.com/a/1562/21606 more robust in the following sense: In my case, some parallel kernels die regularly during ...
0
votes
1answer
33 views

An unexpected NDSolve behavior [closed]

I observe the following. The code: ...
0
votes
1answer
44 views

Setting Initial Conditions in a System of Differential Equations that don't start at t=0

I have a system of six differential equations (linear for the sake of the discussion). I want to set the initial condition to start at time t=18 and not time t=0. I know the values of the dependent ...

15 30 50 per page