7
votes
2answers
133 views

Efficient way to obtain values of a function defined by an Integral

Consider the following equation: $$S(q)=\frac{(4 \pi \rho ) \int r (h(r)-1) \sin (q r) \, dr}{q}$$ I want to numerically obtain values for $S(q)$ given that I have data points representing $h(r)$ ...
1
vote
1answer
38 views
0
votes
0answers
38 views

weiner process conditional expected maximum? [on hold]

Suppose we have weiner process over interval t=0 to t=1, with standard deviation 1 over interval and mean 0. If time now is r where r between 0 and 1 and x is current value of process and m is ...
8
votes
2answers
492 views

A femme is a wife is a Frau

As can be seen from LanguageData["Properties"] // Multicolumn Mathematica's translation capabilities seem to be very limited. It can translate month names, ...
11
votes
2answers
426 views

Fitting ellipse to 5 given points on the plane

Five points are required to define a unique ellipse. An ellipse has five degrees of freedom: the $x$ and $y$ coordinates of each focus, and the sum of the distance from each focus to a point on the ...
2
votes
0answers
51 views

How to include confidence intervals into ProbabilityScalePlot?

I use ProbabilityScalePlot[data, "Weibull"] to plot measured data and ...
1
vote
1answer
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 ...
3
votes
0answers
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 ...
2
votes
3answers
100 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 ...
5
votes
1answer
54 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 ...
0
votes
1answer
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. ...
-1
votes
0answers
118 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 ...
3
votes
1answer
61 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, ...
0
votes
0answers
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 ...
3
votes
2answers
138 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 ...
0
votes
0answers
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. ...
4
votes
3answers
72 views

Save associations to a file and reload

I have many (say 2 for now) associations that I want to save to a file ...
4
votes
5answers
123 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. ...
13
votes
6answers
675 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 ...
3
votes
6answers
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 ...
0
votes
0answers
52 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 ...
0
votes
2answers
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 ...
1
vote
1answer
147 views

Problem with FOR Loop in MATHEMATICA [on hold]

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 ...
0
votes
0answers
31 views

GridLines won't show up in ListPlot [closed]

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: ...
1
vote
2answers
55 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 ...
0
votes
0answers
41 views

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

I want to do something in the spirit of this code: ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
7
votes
1answer
134 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 ...
1
vote
0answers
62 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: ...
0
votes
0answers
53 views

No solution with DSOLVE

I have been trying to solve the following system of ODEs: \begin{eqnarray} ...
3
votes
2answers
131 views

Adding labels and numbers in axes

Let's see the following test case ...
4
votes
3answers
172 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. ...
0
votes
1answer
41 views

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

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 ...
3
votes
2answers
225 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 ...
1
vote
1answer
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 ...
3
votes
1answer
85 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 ...
1
vote
1answer
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.
1
vote
2answers
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 ...
0
votes
0answers
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 ...
14
votes
12answers
516 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 ...
-2
votes
0answers
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.) ...
1
vote
0answers
59 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) ...
0
votes
0answers
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 ...
0
votes
1answer
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} ...
2
votes
4answers
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 ...
0
votes
0answers
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, ...
2
votes
4answers
166 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 ...
6
votes
3answers
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 ...

15 30 50 per page