# All Questions

17 views

### Lagrange Multiplier

We are asked to maximize and minimize $f(x,y)=4xy$, given the constraint $4x^2+y^2=8$, using the Lagrange Multiplier method. First, I enter the functions f and g. ...
55 views

I would like to determine a closed-form expression for the following symbolic integral $$\int_{-1/2}^{1/2} \!\!\!\! \mathrm{d} x \int_{-1/2}^{1/2} \!\!\!\! \mathrm{d} y \, \frac{1 + b x + c y}{1 + e ... 0answers 25 views ### Mathematica 10.1, soon? According to this post and this page of the Wolfram Documentation Center a new Mathematica version is on the way. It'll be v. 10.1 and, as such, a rather major upgrade after Mathematica 10.0.1 and ... 1answer 55 views ### Region bounded by ellipse and line I have an ellipse defined either as algebraic or geometric: algebraic: ax^2 + bxy +cy^2 + dx +ey +f = 0 geometric: major Axis, minor Axis, x center, y center, rotation angle from horizontal And I ... 0answers 10 views ### DateObject from AbsoluteTime broken In the middle of a session (10.0.2 / Win64 / 2.7Gb working set - peak was over 7Gb) the form/definition for DateObject from an integer has disappeared. ... 1answer 138 views ### How do I prevent Mathematica from reformatting the expressions that I copy as LaTeX? When I choose something that looks like$$ W_1(1)=\rho ^{5} \omega _1 \rho ^{-5}\\ W_2(2)=\rho ^{23} \omega _2 \rho ^{-23}\\ W_3(3)=\rho ^{10} \omega _3 \rho ^{-10}\\ W_4(4)=\rho ^{9} \omega _4 \rho ...
43 views

how to download using weather data function many proporties exactly. Example WeatherData["WMO44292", "Humidity", "Pressure", "Temperature", \ {{2005, 1, 1, 0, 0}, {2015, 1, 1, 0, 0}}] .
74 views

### Conversion to TeX results in infinite recursion

I'm trying to export to $\TeX$ a Message cell. For example, after evaluating Sin[a,b], ...
6 views

### NDsolve with periodic event not evaluating as expected

I have a differential equation in which I would like to apply a periodic dilution happening say every 24 hours. This is a simple example, and this one works as expected: ...
11 views

### How can I get “custom” controls to appear and behave like “default” controls in my Manipulate?

For various reasons I need to define some controls in my Manipulate with complex behaviors that are not (or at least I don't think can be) accomplished using the ...
30 views

### Integrated Solution Graphics

I want to draw this nonlinear differantial equation' graphic with other solving equation (in same graphic). ...
12 views

### Boundary Value Problem Errror

I have a first order differential equation such as d/dt (u[x,t]) = - u[x,t]*u[x,t] and the boundary conditions are ...
442 views

### How best to embed various cell groups into a latex project?

I'm an author and a coder. I want to reference various parts of my notebooks in my latex project. I've tried doing the following, using a post on the latex side of this problem. I'd like to solve it ...
35 views

### How to enlarge the plot without the legend (or label)?

I have 3 plot with legend on top. However when I array them in one row, plot is small. Then I tried to enlarge the output graphics, every graphic cannot enlarge except the gap. How to solve this? This ...
8 views

### Speeding Up the Numerical Integration of a Product of Numerical Integrands with NIntegrate

I need to solve a set of coupled integral equations within a self-consistent cycle. The final result will be functions, say $A(x)$ and $B(x)$, which are related to each other by some integrals which ...
71 views

### ParallelTable and global variables

I want to calculate the convolution of two function. In order to generate variables automatically, I use such an expressions: ...
299 views

### Turning a set of random walk data 45 degrees

I have a set of data that is just a "random" (generated by me, not by computer) sequence of length 2000 of 1's and (-1)'s. I used it to plot a 1-D random walk where +1 is step up, (-1) is step down, ...
87 views

### Simplified expression is different than original

I have a question regarding the Simplify command in mathematica. I am working with a 4 x 4 table called Eqs, filled with symbolic expressions. I then do ...
44 views

### Is there a way to create a two column page layout in a notebook?

I am working on a white-paper that requires a two column format. Is there an existing Stylesheet that can be used or a way to create a Stylesheet that supports this Mathematica?
16 views

### Solving a PDE with a spatially piecewise-constant material parameter

I would like to solve equation for the 2D distribution of an electrical potential in the conductive medium: div(sigma*grad(f))==0 where f=f(x,y) is the electric ...
48 views

### DensityPlot and KroneckerDelta

I have the following DensityPlot: DensityPlot[Sin[x] Sin[y], {x, -Pi/4, Pi/4}, {y, -Pi/4, Pi/4}, ColorFunction -> "SunsetColors", PlotLegends -> Automatic] ...
61 views

### How do I smooth or remove jitter from an exported Graphics3D plot?

I have exported a Graphics3D plot as gif. But the plot shows jitter (You can see the yellow ball shows somewhat slight move around, which is expected to be still). How does this happen and how to get ...
45 views

### Memory Problem with Modules and NDSolve

I'm using NDSolve inside a module, and I appear to have a memory leak. The relevant code is: ...
34 views

### Problem in deriving general equation [on hold]

I have a problem to derive a general equation in Mathematica. The code below supposedly computes the intersection area What modifications should I make to the code to derive the area in terms of ...
53 views

### Filtering the output from Table and export it into excel

I have the following functions ...
64 views

### Using Specularity effects and ColorFunction in Plot3d

I'd like to reproduce the 3d surface of the attached image . What I'm interested in, is the light reflection at the basis of the surface and the rainbowlike color. I use Plot3d and colorfunction in ...
19 views

### How can i specify a NotebookSelection by a given CellObject?

My Questing is very simple. If I have a CellObject e.g. CellObject[Text], I can move the selection to this ...
168 views

### Young Tableaux Miscellanea

I have a problem which is mostly neatly described by using Young Tableaux. Mathematica seems to have these Tableaux built in, except that the Tableaux function is ...
4k views

### how to make graphic timelines in mathematica

Hi does anyone know how to make timelines with mathematica? http://images.nationmaster.com/images/motw/atlas_middle_east/turkey_timeline.jpg something like that would be great! thanks
32 views

### Comparing memory consumption of two pieces of code

I have implemented something I want to do in two different ways, because I'm not sure which of the two approaches give best speed/memory efficiency. Comparing the speed of the two approaches is ...
164 views

When I enter ...
32 views

### Call functions from a notebook inside C#

Is there a way to use functions from a notebook in C# with NETLink ? I found only this: Evaluate Notebook from .Net, but it is not of much help. Any suggestions ?
188 views

### How do I write a condition for Position that uses both the current and previous element?

For example, given {57, 3, 40, 94, 9, 84, 81, 93, 76, 5, 7, 76, 38, 9, 23, 95, 49, 0, 30, 3} I'd like to get all the indices at which the elements cross from ...
291 views

### Speeding up the non-negativity algorithm for multilinear function with interval probabilities?

The algorithm is a branch-and-bound algorithm that calculates the non-negativity of a multilinear function with interval probabilities. The lines 9-11 has an optimization that is explained on the ...
82 views

### Mathematica on Raspberry Pi

Can I develop BSD/MIT open-source library for Mathematica using free non-commercial version on Raspberry Pi? To state it differently: does the non-commercial limitation of Mathematica on RPi limit ...
34 views

### Plot 3D with conditions and variables dependent on each other

I m trying to do something like this: ...
28 views

### Ordered associations

Mathematica 10 has introduced Associations, elsewhere known as hash tables or dictionaries. Is there Ordered equivalent like in Python, Java, .NET? The data structure should remember the order in ...
75 views
+50

### How do I correctly embed VerificationTests in my packages?

I like to write my tests before I code and write them inline when developing a package, and when loading a package those VerificationTests should run and the load should fail and print a report if ...
38 views

### DatePlus and DayPlus perform much worse than my user-defined-function

I was debugging a function speed, and discovered that the time bottleneck was in DatePlus. I tried to change to DayPlus and get ...
95 views

### Frontend: Adding cell-type choices to the “Choose how to enter input” drop-down

In most of the notebooks I work in, I find myself using 2 or three cell-types almost exclusively (typically regular input, and some subset of section/subsection/chapter). A minor annoyance I run into ...
25 views

### ListLinePlot will not print all the coordinates. How can I overcome this? [on hold]

I have the following list: ...
28 views

### Defining the domain of positive real numbers

I am trying to solve an equation by assuming that all the variables are real and strictly positive. I can use the keyword Reals for the argument ...
122 views

### Why does cropping an image improve TextRecognize so much?

I am trying to use the TextRecognize function to extract data from certain screenshots. This is already a cropped version. Using TextRecognize on this yields ...
120 views

### How can I generate a $2n$-point moving maximum of a list as efficiently as MaxFilter?

This is based on the prior question, Moving maximum function?, where @rasher provided two winning solutions (i.e. clearly the most efficient): MaxFilter[list, 1] ...
33 views

### FindRoot, Loops and multivariate nonlinear system

I posted a question yesterday asking how I could get all the solutions to my system of 4 nonlinear equations with 4 unknowns. I gave up on this since it seems ...
97 views

### WorkingPrecision causes issue in the NIntegrate

I really can't figure out why my code sometimes is not working. My integrals involve two variables (k and kz). The integration ...
110 views

### Get Axes Range of Plot?

Say I have some plot plot = Plot[Sin[x], {x,0,10}] (*as an example*) Is there a way I can get the x and y axes min/max values from the "plot" variable? If I ...
70 views

### Floating point arithmetic bug caused by Table[]

I was doing something fairly ordinary and noticed something I can't, for the life of me, explain. For context, I wanted to take make a function that takes an array of data like the one below, then an ...