11
votes
1answer
273 views

Making a Mathematica package manager?

I'd like to get a serious discussion started about a package manager. This has come up elsewhere, and many people have implemented their own solutions. It would be nice to have a standardized way to ...
3
votes
3answers
74 views

Alternatives to DateQ of Calendar Package

This answer notes that Calendar package has a function DateQ but the documentation suggests that the input is limited to a fixed ...
2
votes
2answers
101 views

Importing Data and Devoting Their Names to Them

There are some files in a directory. I have used of SetDiroctory to access all of them. SetDirectory["C:\\Users\\SE7EN\\Desktop\\mathematica\\test"]; I can visit ...
0
votes
0answers
51 views

Evaluating an expression a second time returns wrong result

I have the following code: ...
1
vote
1answer
740 views

Simplify square roots

If I simplify an equation like Sqrt[A^5]+5*Sqrt[A^3]-Sqrt[A] then I get (A^2+5A-1)*Sqrt[A] with no problems. But when I need to simplify Sqrt[(A^5) (1 + a) ] + 5 Sqrt[A^3 (1 + a)] - Sqrt[A (1 + a)] as ...
3
votes
1answer
202 views

Giving a custom style a colored gradient background

In Mathematica, customizing Sections, Subsections, Titles and so on, can be done with Format > Style > .... Changing the background color of a style is one of the things you can do. Here is an example ...
4
votes
2answers
312 views

How to create breathing wall effect?

I would like to recreate the effect of the one in this video: Breathing walls This is my first time manipulating images, and because of that, I don't even have a clue where to start. But I think ...
0
votes
1answer
204 views

FindRoot finds a solution not found by NSolve

I am trying to solve a polynomial equation of higher order with non-integer exponents. When the order of the system is greater than 4, FindRoot provides a correct solution that is not found by NSolve. ...
4
votes
3answers
382 views

How can I find the boundary function in RegionPlot?

I have a problem with finding the function that gives the boundary curve in RegionPlot comamnd. I use the following code to make the regions in which two ...
2
votes
1answer
99 views

Handling ± in a set of equations

First let me post the question that I am doing: You see for wave equation y2, there is a ± sign. I know how to do + or ...
1
vote
1answer
45 views

Replacing variables in an RSolve expression

I have a recursive expression, which is something like: $$ a(n,x)=f(x,y,m)\,a(n-1,x)+g(x,y)\,a(n-1,y) $$ where $f(x,y,m)$ and $g(x,y)$ are known. So the second $a$ depends on $y$ rather than $x$. I ...
3
votes
4answers
157 views

Correct slot assignment when mapping from different lists using pure function

Given expr = u == a1 + a2 x + a3 y; and uRep = {u1, u2, u3}; xyRep = {{x1, y1}, {x2, y2}, {x3, y3}}; I'd like to generate ...
10
votes
4answers
335 views

Complement of multisets

Given lists $a$ and $b$, which represent multisets, how can I compute the complement $a\setminus b$? I'd like to construct a function xunion that returns the ...
4
votes
1answer
203 views

Simulating a bounded continuous random walk in $n$-dimensions

You're given three $n$-dimensional real vectors, $\mathbf{x_0}$, $\mathbf{a}$ and $\mathbf{b}$, with $\mathbf{a} \le \mathbf{x_0} \le \mathbf{b}$ (vector inequality means component-wise inequality). ...
1
vote
2answers
123 views

Searching for phrases in a block of text

One could call this a pattern finding question with dictionary (or WolframAlpha) lookup, but let me give you some background first. I have a couple of friends who are trying to improve their English ...
1
vote
0answers
60 views

GraphPlot not working properly

The code ...
2
votes
2answers
61 views

How to prevent conversion of number forms to numbers in Import [ webpage, “Data” ]?

I have tabular data on a webpage. It looks like this: Import["http://mfvonh.me/numericalTable.html", "Plaintext"] 1.0 1.1 3.53 However, I have ...
8
votes
1answer
153 views

CSS Selectors for Symbolic XML

Symbolic XML is a convenient way of managing XML in Mathematica, at least for casual use or small tasks. Here and elsewhere you can find examples of XML handling in Mathematica, including XSLT/XPath ...
0
votes
1answer
63 views

Importing colors from file

I just tried something straightforward (for me): ...
3
votes
0answers
112 views

Authorizing use of proprietary code in the cloud?

As I continue to refine my working approach to deploying proprietary Mathematica code (see: Prevent package from being opened in a notebook interface and Run encoded package code through ...
1
vote
2answers
162 views

dropping a row with at least one value larger than a particular value

So for instance I have M X N table. I want to drop any row which has an element larger than, say, one in the second or the third column. I guess I have to do some sort of pattern matching. But not ...
1
vote
1answer
225 views

Numerical solution of two coupled transcendental equations with three variables

I have following set of coupled transcendental equations. $\tan^{-1} \left(\frac{\sigma+\beta}{K'-1}\right)+\tan^{-1} \left(\frac{\sigma-\beta}{K'-1}\right)=\frac{2 \sigma}{K'}\cos(\beta\tau)$ and ...
8
votes
2answers
490 views

plotting a trig functions along with its envelope

Note: This questions is quite different from the ones referred to in the comments. Those deal with numerical questions, while this one is algebraic. I have plots of the following type: ...
2
votes
1answer
52 views

Complement for a Matrix

In a matrix, there are some non-zero elements same as: aA= Also, there is a list such as: list = {a, b, c, d, e, f, g, ii, jj, kk}; I want to access to ...
2
votes
2answers
185 views

make a list based on two other lists

I have two lists: list1={4,6} list2={1,2} and I now want a function f that produces f[list1_,list2_]:={1,1,1,1,2,2,2,2,2,2} ...
1
vote
2answers
49 views

Quick question about the FinancialBond function

If I want the fair price of a bond with coupon interval twice per year with interest rate $i$ p.a., I use "CouponInterval"->1/2. However, the InterestRate should be the effective, or nominal interest ...
1
vote
1answer
75 views

Removing outermost braces [duplicate]

I want to calculate the Kronecker product of several matrices in different orders. the number of these matrices must be changeable. ...
2
votes
2answers
416 views

How to compute this triple integral? [closed]

In Mathematica how can I compute this integral:$$ \iiint_{D}\sqrt{(1-9z^2)(1-4y^2-9z^2)}\,dx\,dy\,dz$$ where D is the domain: $$D: x^2 +4y^2+9z^2\le1$$ Please I need help!!!
4
votes
1answer
314 views

Frame thickness in Framed[] [duplicate]

I need to change the frame thickness in Framed[] in order to create a legend box. How can I set the frame thickness in Framed[]? ...
2
votes
1answer
94 views

Defining a rule with functions of arbitrary arguments

I have a set of "functions operators", say A1[u],A2[u],A3[u],and I would like to define a rule such that, for instance, (x*A1[u1]).(y*A2[u2]) returns ...
1
vote
0answers
51 views

A more efficient way of fitting a non-linear model that returns an entire list?

I have a function that takes two parameters, del and nu, and returns a list npoints long ...
8
votes
0answers
188 views

TableView displays negative numbers incorrectly

I'm trying to substitute TableForm with TableView because TableView is more handy with big data . But on my Mathematica 9.0.1 (ubuntu 14.04_64bit) there is a problem with negative numbers: ...
5
votes
1answer
147 views

How do I limit the iterations in a while loop?

Is there a way to limit the number of iterations in a while loop? Right now I am cleaning up the code, and for now if I make a mistake, the loop keeps going forever. I'd like to be able to limit the ...
-1
votes
1answer
120 views

Abort during animation

I am running an animation with the following command: ...
2
votes
0answers
75 views

Simulating a system of nonlinear ODEs?

I was trying to simulate a system of ODEs on Mathematica in an effort to try to understand how to muck around with Mathematica but for some reason the following lines of code do not yield any results; ...
0
votes
4answers
157 views

Minimization in single component of BSpline to extract points

I smoothed some data with a BSpline $B[t] = (x[t],y[t])$. I would like to extract certain points from this spline by their x-Values, $x_0$. The easiest way I came up with was to minimize ...
2
votes
1answer
139 views

divergent part of a series

I am trying to find a function that gives me the divergent part of series in any case. The method "Series[]" does not work because Series[42,{n,0,-1}] gives as ...
2
votes
3answers
210 views

Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...
4
votes
3answers
391 views

Efficient matrix / array generation

What is the most efficient way of generating the following matrix? $\left( \begin{array}{ccccc} 1 & 0 & 1 & 0 & 1 & 0 & 1 & \dots\\ \frac{1}{2} & \frac{1}{2} & 0 ...
0
votes
2answers
80 views

Transfer ColorFunction from ListContourPlot to ListLIC-Plot

I would like to transfer the colors of a ListContourPlot to a ListLIC-Plot. I tried to interpolate the data of the ListContourPlot and use it as ColorFunction for the second plot but I couldn't get it ...
1
vote
1answer
71 views

Series and that old ivar error

I am trying to compare plots of the function (1+x)^{1/3} and its power series. The code for the power series generates an error message referring to an invalid variable: 'General::ivar: -1.09993 is ...
2
votes
1answer
97 views

Sharpening extrema using DensityPlot

I have a data set where I really care mainly about visualizing the highest and lowest areas. DensityPlot suits my needs well, but ideally the maxima and minima would pop more from the rest of the ...
1
vote
1answer
985 views

Runge-Kutta 2nd Order ODE Solver

Suppose I have a 2nd order ODE of the form y''(t) = 1/y with y(0) = 0 and y'(0) = 10, and ...
0
votes
0answers
167 views

How to minimize the sum of squares of deviations from the mean?

I am trying to minimize the sum of squares of a deviation from the mean applying the following: Minimize[Sum[(Subscript[x, i] - \[Mu])^2, {i, 0, n}], x] It ...
1
vote
1answer
111 views

Animating arrows

I have the following Code: ...
5
votes
1answer
215 views

Procedural to functional style

The following code generates an iterative mapping of some trigonometric functions. I have a couple questions about it. The first question is how to optimize this iterative process using mathematica's ...
2
votes
1answer
108 views

Documentation build failed with Workbench

I'm starting to use Wolfram Workbench 2 to develop a Mathematica package. For the first time I tried "Documentation - Build" under the "Application Tools" but got fatal errors: BUILD FAILED ...
0
votes
3answers
203 views

saving outputs of loop

I am stuck on a problem. I have outputs generated at every iteration of a do loop. However, I want to save the outputs in some other file format, like text file etc, in such a way that i must be able ...
0
votes
1answer
109 views

Audio sample data from a Sound object

When generating a Sound object by using Sound primitives, like: Needs["Audio`"] sound = Sound[ListWaveform[{{1, 1}, {1.496, .7}, {2.501, .3}}, 265, 1]]; how can ...
2
votes
2answers
86 views

Alternative to Except in StringExpression when using StringMatchQ

According to this answer and the documentation for StringExpression, Except can only be used in StringExpression for classes of ...

15 30 50 per page