All Questions

47 views

How to include confidence intervals into ProbabilityScalePlot?

I use ProbabilityScalePlot[data, "Weibull"] to plot measured data and ...
45 views

Graphicsrow title [duplicate]

I made the following graphic with Mathematica 9.0: Does anybody know how to put a title on the top of the whole graph? (not in each single plot). Basically I used ...
46 views

Increasing MaxPoints in NDSolve results in memory issue

I am interested in increasing "MaxPoints" in NDSolve's "MethodOfLines" in attempt to increase the resolution of the plot of the solution of linearly damped wave equation with transparent boundary ...
96 views

Function to Expand exponentials

Is there a function similar to PowerExpand which expand exponentials? This would, for example, take Exp[5(a + b)] and ...
53 views

Speedup of KL Divergence by Monte Carlo Simulation

I started with Mathematica about just a week, so I don't know how to take all of this environment. What I want to know is if there is a way to speedup my code to compute the KL-Divergence of Gaussian ...
57 views

Moment generating function for custom distribution [on hold]

For some reason the following fails. I tried everything I could, and I don't know what else to try. ...
117 views

Discrepancy between Mathematica and Fortran expressions — Fortran gives wrong output (C,C++ programmer trying to use Fortran) [on hold]

I typically program in C or C++, but recently wrote some code in Fortran. I am worried that I've made a mistake in the Fortran code due to lack of knowledge of Fortran. I basically need to plot two ...
60 views

Region plot of transformed region giving odd result

I tried applying a transformation to a rectangle: RegionPlot[TransformedRegion[Rectangle[{0, 0}, {1, 1}], {#1^(1/3) + #2, 1 + #2} &]] giving In reality, ...
36 views

Keyboard icon under windows

The following command Style[ "\:2328", Large] should display a keyboard icon on some operating systems. Is that correct? And on which systems? However it ...
136 views

Orthogonal vector in two dimensions

Maybe this is really basic, but I couldn't figure it out. I would like to find the "hat vector" of a vector I defined: it's a vector orthogonal to the given one, assuming two dimensions. So for ...
81 views

How do I select terms by derivative order for integration by parts?

I am trying to calculate derivatives of an integral wrt parameters of the integrand. ...
71 views

Save associations to a file and reload

I have many (say 2 for now) associations that I want to save to a file ...
122 views

getting at the right parts of a list

I have a way to solve my problem, but it seems like there should be something better. Also I realize that I probably don't have a good enough handle on how to get at parts of lists the way I need to. ...
643 views

Around the Clock

I want to produce with Mathematica something like this Or this 12 hours should be arranged in a pleasing ("rotated") style around / within a rectangle. I don't ask for the hands - depending on ...
159 views

Change last column of a matrix

Given a (rectangular) matrix of integers, i.e. RandomInteger[4, {10, 3}] I want to apply the following rules only to the last column ...
49 views

Latin Hypercube Sampling

I'm looking into Mathematica and I can't find if there is an instruction or a set of them that can perform the Latin Hypercube Sampling, given variable, their ...
38 views

Use modified part of file path as new file name

i want to import an image, modify it and then export the modified image. Something like this: img = Import["C:\\Images\\e4271-5.jpg"] Some modifications ...
144 views

Problem with FOR Loop in MATHEMATICA

I have some problem in solving two coupled polynomial equations in Mathematica. I have used FOR loop and this program starts running indefinitely for Infinite time, and therefore I got stuck. My ...
31 views

GridLines won't show up in ListPlot [on hold]

I can't get gridlines to show up when I ListPlot my data. When I type in Automatic they show up but when I put in a list of the gridlines I want nothing shows up. Here's a screenshot: ...
54 views

Is there a way to logically test an optional color input inside a module? [duplicate]

Suppose I create a Module that is expected to return a graphic that I will later use in a plotting procedure (e.g., with ...
41 views

How to do replacements in Compile'd code? [duplicate]

I want to do something in the spirit of this code: ...
13 views

Differential equation with fourier transform and convolution [migrated]

We have differential equation $3s(t)-2s''(t)=r(t)\,$ and $s(t)$ is convolution $s=g*r\,$ where $g(t)=ae^{-b\left | t \right |}\,$ $\\a,b\in\mathbb R+$ Solve constans a and b. I tried to solve ...
18 views

How can i fit a specific count of rectangles in a bigger rectangle with a given size? [migrated]

I have an area (rectangle) with a given size and i want to fit any number of smaller rectangles with variable height and width in it. I.e.: My rectangle is 1024x600 and i want to fit 150 smaller ...
26 views

Mathematica not showing MySQL databases

I have MySQL installed and I want to access the databases from Mathematica. From the command line this is what I have Now I want to edit this db directly form Mathematica. If I do ...
132 views

Mathematica integration failure - new or old?

Consider the following integral: Integrate[Log[a Cos[x]^2 + b Sin[x]^2], {x, 0, 2Pi}] This takes a LONG time (this is Mathematica 10.0.1 on a Mac), and sometimes ...
55 views

How to solve a nonlinear coupled PDE with initial and some boundary values

I would like to solve the following nonlinear coupled PDE with a mix of initial conditions and boundary values: ...
53 views

No solution with DSOLVE

I have been trying to solve the following system of ODEs: \begin{eqnarray} ...
128 views

Adding labels and numbers in axes

Let's see the following test case ...
171 views

Enumerating all connected graphs with 9 vertices

The version of my Mathematica is 10. I generate a connected graph with 9 vertices, but find that it is not included in Mathematica. ...
41 views

Mathematica does not have permission to write files - Linux [on hold]

I'm working with very large datafiles, (like: my calculations run for several days). I would like to save my output after every calculation, in case the kernel crashes. However, my computer refuses ...
221 views

How to transform a matrix to upper-triangular with operation- tag elegantly?

Description: Recently, I have a thought that writing a function to show the transformation process when a matrix is transformed to upper-triangular. My trail ...
66 views

graphicsgrid white space

I'm working with mathematica 9.0 making a graphic grid. Here's my image: I'd like to know if it's possible to make the two cells from right only one and if there's some manner to rid of the white ...
83 views

Get Documentation Search Results Programmatically

Currently I don't have access to Wolfram Workbench but would like to add my own pages to the documentation search results in Mathematica. How might I most easily manually add pages to the ...
53 views

Switch Shift+Enter and Enter

How can I switch the functionality of Enter and Shift+Enter in Windows? I find mat labs functionality more intuitive sometimes.
107 views

Convert imported PDF to an image

I've looked through the forum and have not seen an answer for this. I would like to be able to import a pdf document in which each page contains an QR code. I want to then use the Barcode reader ...
35 views

possibility of predication of next number [closed]

I am interested to know that possibility of predication of next number in math e.g E O O E E O E E O O E E E O O O E E ? E OR O i am working on number ...
493 views

Join lists with nested list

Is there a way of smarter way of joining list of the form l1 = {a,{b,c}}; l2 = {d,{e,f}}; l3 = {g,{h,i}}; To obtain ...
64 views

Solving Laplace's equation in rectangle domain by separation of variables

I wanted to solve numerically Laplace's equation $\Delta \psi = 0$ by separation of variables, ie: 1.) ansatz $\psi(x,y,t) = X(x)Y(y)$ (t will be important later, think of it as a parameter) 2.) ...
58 views

Why does my dataset lose its typesetting when I add columns?

I've tried multiple methods of adding and removing columns to a dataset, but it seems no matter which way I choose I can't get the data to typeset as a table. Here's my initial dataset: 1) ...
41 views

Find an element from a list [closed]

I have generated a list(using Table), then used the Min function to find the minimum from the list(let's call it a). Now I want to know which element from the list has this value(for example the 5th ...
60 views

Substitution of a function in a differential equation

Suppose we have a differential equation as follows: g[t_] := t/2 m[t_] := t/3 A[t_] := {{g[t], 1}, {1, m[t]}} p'[t] == A[t]. p[t], p[0] == {1, 0} ...
57 views

Trying to write out the prime factorization of a number with CenterDot and Superscript

I am trying to use CenterDot and Superscript, in conjunction with Apply to write out the prime factorization of any given integer. Everything works well UNLESS the prime factorization of the number ...
50 views

ListPlot and ListLinePlot, show nothing, how can I plot correctly? [closed]

I'm trying to plot a graphic using a list of pairs, i.e., {{x1,y1},...,{xn,yn}} but nothing appears in mathematica notebook. I used the following commands and list: Does anyone can help me please, ...
162 views

Output is Input for a Differential with Sign?

Here's the problem: For one of my classes, we're supposed to use Mathematica to solve the equation y''=y-b*y' for a variety of b values and specified boundary conditions and plot the outputs. There I ...
143 views

Remove Successive Duplicate From A Large List (200k by 4 matrix)

I am interested in removing successive duplicate rows from a very large list (~200k rows by 4 columns) using Mathematica.The built-in 'DeleteDuplicates' seems to remove all duplicates, I am interested ...
34 views

Series expanding an expression to an arbitrary power

How can I get Mathematica to directly produce the series expansion of an expression such as $(1+1/x)^n$, where $n$ is an arbitrary positive integer? Note that it's important in my expression to keep ...
51 views

graphics grid legend

I'm working with mathematica 9.0 and I want to make a graphic grid containing 3 different plots. My problem is that when I use plotlegend to label the plots the legend does not show up or the left ...
51 views

Tube and CapForm

I am using version 10 to draw tubes. With the CapForm set as Butt the first pipe is as expected but the bent pipe has one rounded end. Is this a bug? How can I fix this? Thanks ...