All Questions

71 views

Finding a formula for a 3D shape and colouring it

I created a wall with line command ...
6 views

Change numerical plot labels on one axis to strings

This question likely has a straightforward answer. Suppose I have a plot something like this: ...
11 views

using output in pure function

Suppose i have an integral which has a close form, $\int_{a}^{b} f(x) dx=F(a,b)$ I want to use output function $F$ as a pure function, like F[a,#]& so i try ...
98 views

Control which frontend session/kernel the Workbench gets attached to

(I am new to Workbench) I have 2 or 3 Mathematica frontend sessions open with a few of them running some long-running codes. When I try to open/edit a code in Workbench, I see that it sometimes it ...
18 views

Generating by plots by rerunning code

I am new to Mathematica. I created a code where I can evaluate a parameter (denoted by PoA) for a random instance of a directed acyclic graph. The code is below. ...
11 views

hi can someone please help me solving this problem: Let $u(x, t)$ be a solution of a wave equation $u_{tt} − u_{xx} = 0$, $x \in (0, 2\pi)$, $t > 0$ satisfying Neumann boundary conditions $u_x(0, ... 0answers 8 views power series or taylor series for transcendental equation Can anyone please show me how to find a power series or taylor series for$p(h)$, an implicit function of$h$implied by the following equation:$-plog(p) - (1-p)log(\frac{1-p}{n-1}) - h = 0$?? ... 0answers 14 views Maximize Duplicate digits Equation Let's save I have a simple equation like the following. P(1+r/n)^(n*t) How might I most simply maximize the number of duplicate digits in the equation? 0answers 11 views Construct single InterpolatingFunction from a mathematical combination of other IF's Let's say I have an interpolated function f, like I might get as the solution to an NDSolve: ... 1answer 20 views Improving Performance - Finding Polynomial Roots I'm fairly new to Mathematica. In the past, my usage has mostly been limited to solving the occasional equation, making some plots, and working with small scaled statistics. None of these have been ... 1answer 60 views compute the gradient in high dimension The following code is used to compute the gradient of a given 2D data. ... 4answers 441 views Finding the period of an array of integers A simple array of integers is given. The problem is to detect if a pattern is repeatedly occurring in the array, and find the length of that pattern. For example, for ... 1answer 130 views Making table and plotting results of NDSolve problem I am trying to solve two equation to find /[Phi][x] and plot h vs. /[Phi][x] for different values of L.I tried by writing as: ... 2answers 141 views Extract data from DateListPlot, limited by PlotRange Extracting the points from a line in a ListPlot in this answer uses points = Cases[Normal@plot, Line[pts_] :> pts, Infinity]; This works in DateListPlot ... 2answers 1k views How to make traditional output for derivatives Hello again after some pause. i have a problem how to present partial derivatives in traditional form, not as Mathematica gave it to me in its notation. So I want to present this ... 2answers 9k views How to make Jacobian automatically in Mathematica If we have two vectors, a and b, how can I make Jacobian matrix automatically in Mathematica? $$a=\left( \begin{array}{c} \text{x1}^3+2\text{x2}^2 \\ 3\text{x1}^4+7\text{x2} \end{array} ... 1answer 22 views Partial derivative of defined function with vector input Background: Have written a formula for the refractive index for a glass slab (n) that depends on the variables t,a and d. Now I want to calculate for example some sort of error and I'll be needing to ... 1answer 53 views NonlinearModelFit: fit a vector-valued function to a data vector I have a vector of data points: data = 10 Sin[#/10] + RandomVariate@NormalDistribution[] & /@ Range[200]; And I have model that provides the complete ... 1answer 49 views Abstract iterator in Do I'm trying to write a module. Its input is a matrix (tensor), the module should return new tensor with increased rank with 1. The new tensor is defined as$$ O \Rightarrow N_{\alpha \beta \ldots ... 3answers 97 views Import Data using selection criteria I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ... 0answers 27 views DateObject for current date skips a day when crossing the date line with TimeZone The DateObject was introduced in version 10 of Mathematica. One can call it to fetch the current local date and time: ... 0answers 111 views No analogue for Maple's dchange? Maple owns an interesting function called dchange which can change the variables of differential equations, but there seems to be no such function in Mathematica. ... 2answers 48 views How to re-arrange lists, divide one list into 2 lists with a particular step [duplicate] How to re-arrange following list: {a1,b1,a2,b2,a3,b3,a4,b4} or this {a1,b1},{a2,b2},{a3,b3},{a4,b4} to get: ... 1answer 45 views What is the correct idiom for mapping a 0 value in a modulo n expression back to n? What is the correct idiom for mapping the$0$value in a modulo$n$expression back to$n$. For example if I want to be sure that any integer value maps back to the index for a character in the ... 0answers 36 views What does it mean when FindInstance returns unevaluated? According to the documentation, FindInstance[] return the empty set when it does not find a solution and one of the examples claims that this is proof that no solution exists. So if FindInstance[] ... 1answer 104 views how to create Panel for Plot? Can You advice me how to put the whole thing below into an interactive Panel, so I can values of parameters dynamically - type other values (alpha, beta, x0, y0, R, tmax) and plot updates ... 0answers 204 views Getting EPS imports to respect the original fill rule One major problem in my attempt to answer to the CountryData flags question is that the way Mathematica handles filled curves differs from the way SVG and EPS style editors do. The latter two have the ... 3answers 2k views How to do http POST in Mathematica? The Import command lets you do a HTTP GET from a URL, like this Import @ "http://merkosoncampus.com/wp-content/uploads/2011/05/higgs-boson.jpg" This sends an ... 2answers 130 views Nearest neighbor distribution I need to construct nearest neighbor distribution for a given finite set of real numbers. I have no clue how this can be realized. Any suggestion would be very much appreciated. 1answer 49 views Using Wolfram Library Reference in Excel VBA Long time ago I did this question to MathGroup, but without success. In Excel VBA, in Tool/References, there is a option called "Wolfram Mathematica Control 8.0 Type Library" I belive that ... 2answers 2k views An efficient circular arc primitive for Graphics3D As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment. Several solutions to this ... 1answer 237 views ArrayPlot copied to PDF shows blurred mesh Certain (but not all) images displayed in ArrayPlot, and then copied to PDF, show what appear to be fuzzy mesh lines in white areas. An example is shown below. I ... 3answers 484 views Next highly composite number? R language has this function 'nextn' (link) which computes the next highly composite number greater than a given one, which is used to find the optimal padding size for the subsequent FFT operation. ... 4answers 151 views How to check if all the members of list lies in specific range I have a list the form: ... 1answer 96 views How to access an already opened Excel file in Mathematica? This post 4594 shows how to open a existent Excel file with Mathematica. And this 6686886 shows how to do what I need, but in C#. This 12282310 is another related one. How can I connect to a ... 0answers 47 views How to make work Plus function? [duplicate] I have a little problem. I have k = 1.56343*10^9; r = 9.10492*10^18. And I should receive a (2*r*r-k*k)/2*r*r, it equals to ... 0answers 33 views Nest-Recursion leads to overflow - Numerical calculation of Lyapunov exponents [on hold] I calculate the Lyapunov exponents of several dynamical systems and want to compare the results with other algorithms. One of the most famous puplications is the work of Marco Sandri, see this paper. ... 0answers 49 views How speed the calculatation of the inverse of an upper triangular matrix I have found the inverse of an upper triangular matrix by substitution using the "for" command, but it works very slowly when the upper triangular matrix is big. Example: If 686 is matrix's ... 1answer 572 views Problems with “Test Connectivity” and the Pacletserver I know there has been a similar questions to this already but the solution did not work for me so here again: I have internet connection and I can execute such commands like: ... 0answers 29 views Faster trimming of leading/trailing zeroes in rectangular array Given a (large) rectangular array, e.g. (small for example case): ... 2answers 72 views why MeanFilter is nearly 100 times slower than MovingAverage for 1D array? I used to average over my data with MeanFilter before I learn about MovingAverage and thought that these two functions are similar except that MeanFilter is more powerful for its ability to deal with ... 2answers 52 views Use a Module to return multiple plots A program I'm running requires me to generate multiple plots over the same domain, so I thought it would be fairly simple to use a module and bury all of the plot commands within that that way I only ... 1answer 40 views How do I perform exact unit conversions with irrational conversion factors? Suppose I want to express$3h$in units of$\hbar$(where$h$and$\hbar$are the Planck constant and reduced Planck constant, respectively). By definition,$h = 2\pi\hbar$, but when I attempt this ... 0answers 106 views Empty Blank regression in v10.1 In v10.1.0.0 on Linux, when Blank[] is used in Alternatives with pattern that can match a sequence, whole pattern unexpectedly ... 1answer 52 views Finite Field matrix rank calculation How does one define a matrix over$GF(p^r)$in mathematica in order to compute rank? I am working with$GF(2)\$?
25 views

Let's save I have a notebook full of text cells. How might I add numbering to the text cells?
40 views

Collecting specific Lists of data in coordinate form

Note: This might be trivial for many of the users but i am new to mathematica so i don't know!!! Question: Suppose i have three list of data as follows: ...
68 views

Plotting a NDSolve solution

I'm working on a neutrino oscillations problem, and am running into issues ploting the solution to my differential equations. The equations have non-analytic solutions so I'm using the ...