2
votes
1answer
59 views
White spots in ListDensityPlot
I have a problem with ListDensityPlot.
I have some data on an irregular grid.
I try to plot them with
...
0
votes
1answer
54 views
Recurrence equations with periodic coefficient
Suppose I have the following recurrence equation:
$$
F_{i+1}P_{i+1}+F_iP_i-P_{i+1}+P_i=2J\,,
\quad\textrm{with}\quad
F_{i+L}=F_i,P_{i+L}=P_i\,.
$$
$J$ is constant, $\{P_i\}$ are probabilities with ...
-2
votes
0answers
66 views
Reduced Planck constant and UnitConvert to Erg * Second
I declared the reduced Planck constant by
ℏ = Quantity[1, "hbar"]
which worked. Now I want to calculate something in cgs units. Therefore, I tried to convert ...
12
votes
4answers
355 views
+50
Digital filter of image in Fourier space
Consider the contour plot below, of a function f(x,y) - which is calculated numerically by solving some equations.
If one looks carefully, one can observe two types of waves, to the left and right of ...
2
votes
3answers
74 views
Write a function using pattern test to test whether the input is polynomial and print error message if not
I am doing this which is supposed to be an easy problem and which I think my code should be correct but for some reasons it is not working. May anyone help correcting my mistakes? How should I write ...
2
votes
2answers
78 views
Plotting rainbow circle [duplicate]
I am trying to plot a parametric circle in rainbow colors. It should go round once, but I'd like to be able to make it go round the rainbow an arbitrary amount of times.
I currently have:
...
-1
votes
0answers
35 views
Simplifying Expressions to minimize multiplications [duplicate]
I have a big matrix, whose coefficients mostly have the following form:
2*(Lz*q*q0+Ly*p*q2-Lx*q*q2+Lz*p*q3-Ly*q0*r-Lx*q3*r)
This was obtained with Simplify, with ...
0
votes
0answers
46 views
Find leading-order asymptotic approximatons to the solution of epsilon y''+Cosh[x]y'- y == 0
I am trying to solve this boundary value problem and obtain the leading-order approximations using asymptotic matching. But I got my solution wrong and I am stuck along the way, struggling to find any ...
1
vote
1answer
77 views
Find elements of a list which are empty
Sorry for the most basic of questions. How would I find the positions of a list of elements which are empty, for example I have the list
...
3
votes
0answers
50 views
How can I control the controlplacement of Manipulate?
I want to place the Slider of manipulate as I want but I can't, help me to get rid of it
...
4
votes
2answers
74 views
Solution of equation with power series (perturbation)
So I need to use Mathematica to find the solution of $y=x- \epsilon \sin(2y)$ as a power series in terms of $\epsilon$. I'd assume I'd need to create an equation $f=x-y- \epsilon \sin(2y)$, then ...
0
votes
0answers
34 views
Changing GeometricBrownianMotionProcess function
Since the function GeometricBrownianMotionProcess is given by Mathematica I have some technical questions. If we consider the following example:
...
1
vote
1answer
61 views
Rounding only reals in an expression containing, reals, integers and symbols
I am trying to make a function that would make rounding real numbers in an expression possibly consisting of real numbers, integer numbers and symbols. An example of such an expression is below:
...
0
votes
0answers
39 views
How can I make images in the cell auto-adjust to some fixed-size
There is one auto-adjust item in the right-click menu of image in cell.
And other related items are actual size and ...
5
votes
4answers
152 views
Aligning axes labels on multiple plots
I'm trying to create some "publication quality" figures, but Mathematica is fighting me all the way. So my question is: Should I switch to Origin? Please help!
Well, all joking aside: I'm trying to ...
4
votes
1answer
140 views
Mathematica 9 can't integrate this function but earlier versions could
Integrate[ ArcTan[x]/(1 + x) Log[(1 + x^2)/2], {x, -1, 1}]
I used Mathematica 9.0.1 on Windows7 32bit, Mathematica 9 cannot compute this, but Mathematica 8 gives ...
4
votes
3answers
81 views
label all vertices in polygon plot
Let's say I have the following plot
Graphics[{Opacity[0.2], Rectangle[{0, 0}, {4, 4}]}]
And I want to label all vertices on the graph to give their coordinates, in ...
30
votes
3answers
519 views
Why are my plots displaying behind the axes?
I need to create graphs with light gray axes and black lines. All of my plots display behind the axes. How can I make the plots display over the axes?
...
0
votes
1answer
68 views
Parametric Plot of coupled differential equations
I am able to plot a graph of all the differential equations, but I'd like a parametric plot of each individual one.
Here is what I have so far.
...
3
votes
2answers
176 views
Create polygon using edge lengths and area
Four-sided convex land plots are usually denoted with edge lengths and area.
How do I create a Polygon Object with these parameters in Mathematica ?
0
votes
0answers
46 views
Interpretation of output derivative expression [duplicate]
I am trying to write Mathematica file to find Div, Grad, Laplacian, etc. in coordinates ...
0
votes
0answers
67 views
FindFit for dimension reduction?
Given an n-dimensional function, can I use FindFit to produce an approximate (n-k)-dimensional function?
Here is a simplified illustration of what I am trying to do. I have
$$f(x,a,b,\mu,\sigma) = ...
13
votes
2answers
145 views
Problem importing URL with Greek characters
I'm considering buying a car. So I thought why not make a web-crawler in Mathematica to pile-up car data? Brilliant idea.
Then I found this Greek website, gocar.gr, which just so happens to have all ...
3
votes
1answer
87 views
What's the main difference between FindClusters and ClusteringComponents? [closed]
In many cases, FindClusters and ClusteringComponents provide similar results. Options for hierarchical and agglomerative ...
2
votes
0answers
65 views
Finding and interpreting errors [duplicate]
This sounds like a fairly trivial question, but I can't think of any way to solve it. I am doing an extensive parameter sampling where a set of ODEs is used together with ...
2
votes
2answers
106 views
Coloring a shape according to a function
I would like to create a $2D$ shape, say an ellipse, where each point in the ellipse is colored according a RGB function, so at point ...
2
votes
2answers
72 views
How to make BSplineFunction pass each data point and naturally smooth?
(Old package, works good)
...
1
vote
2answers
65 views
Locator following other locator in DynamicModule
I'm trying to create a dynamic environment where I specify, using two locators, the initial condition (position (x,y) and velocity angle (alpha)) of a 2D particle.
To simplify, I'm assuming the ...
1
vote
1answer
79 views
finding poles of a function
Is there a command to find the poles of a function $f=f(z)$?
example: let $$f(z) = \frac{1}{z^2-1}$$ then we know that the poles are at
$z=\pm 1$ but is there a special command in mathematica to do ...
0
votes
0answers
65 views
Troubleshooting duplicated plots
Everytime I draw a plot (I tried in many different ways and the result is always the same) using the kernel I get it twice. The one I want and a copy.
I tried, for example, with this code:
...
2
votes
0answers
76 views
Mathematica code for hidden Markov models (HMM)
I am looking for some simple Mathematica code to model an HMM with just a few states and an equal number of observable signals (emissions). I am hoping to generate sample paths and keep track of the ...
0
votes
0answers
45 views
Change the order of magnitude on the y axis Ticks with ListPlot
I have some data plotted with ListPlot.
The values on the y axis range from -411230.40068*10^9 to -411230.20005*10^9.
Mathematica, when plotting the data, shows me on the y axis only the value ...
1
vote
1answer
57 views
Double Integral and Assumptions
I'm afraid this is going to be a really stupid question.
Evaluating the following definite integral
Integrate[Sqrt[1 - (x^2 + y^2)], {x, -1, 1}, {y, -1, 1}]
...
0
votes
0answers
46 views
Simpson's rule with ListConvolve or ListCorrelate
I have a function that's represented as a long list of values that I want to integrate. I can do it procedurally with Simpson's rule. ListConvolve generally runs faster then procedural code, so i ...
2
votes
1answer
95 views
Expressing large numbers in index form
I have a quick question. Is there anyway of expressing a large number as a power of another number in Mathematica? By this, I mean for example, $1237940039285380274899124224 = 512^{10}$. Is there a ...
-4
votes
0answers
59 views
How to remove triangulation?
Is there some quick way to recover from a 3-dimensional triangulated polygon the same polygon without triangulation (= delete "bad" edges)?
1
vote
0answers
54 views
How to get all possible Rules and Elements of Functions like ExportString
Here are some $ExportFormats.
I'd like to know which one has some options or elements of Import and Export.
...
-4
votes
0answers
35 views
Any given a complete graph, through the program calculates all of his non-isomorphic spanning subgraph [closed]
Any given a complete graph, through the program calculates all of his non-isomorphic spanning subgraph, ie write the complete figure can be calculated for all non-isomorphic subgraphs program just ...
0
votes
0answers
104 views
Mathematica TCP socket client toward Trading Platform
I'd like to connect Mathematica with my Italian electronic trading platform.
To connect I need to open a TCP socket client towards the trading platform and send a string command.
The high-level ...
2
votes
2answers
96 views
Combine multiple notebook files into a pdf/rtf/word/etc file?
It's the end of the semester and I have a prof who wants me to turn in a printout of the nb files ive worked on. I have 33 separate files, and I was wondering if there was any easy way I could combine ...
-1
votes
0answers
56 views
How can I rotate 3D objects using MSPManipulate?
I tried Manipulate in Mathematica for 3D objects and could rotate them freely. I tried the same in webMathematica by using ...
-3
votes
0answers
59 views
Symbolic constrained optimization with general/unknown objective function [closed]
I am fairly new to Mathematica and would like to solve the following problem:
$$\max\limits_{w,l,c} U(w,l,c)$$
such that $1=w+l, c = yl, w \geq 0, l \geq 0$ and I don't want to define any functional ...
2
votes
3answers
122 views
Plotting the deformed shape of a rectangle
I want to plot a rectangle using graphics :
rc = Graphics[{Blue, Rectangle[{0, 0}, {1, 1}]}];
and add a deformation function to it:
$$\chi(\mathbf ...
-1
votes
0answers
63 views
How to forward the Mathematica values from one page to another jsp page?
I have four jsp files like oneMain.jsp, twoMain.jsp, threeMain.jsp and four.jsp based upon DB data I forward the name threeMain.jsp or fourMain.jsp from oneMain.jsp ...
3
votes
1answer
134 views
Little problem with Through
list = Partition[Range[20], 5, 5, 1, {}]
{{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}, {11, 12, 13, 14, 15}, {16, 17, 18, 19, 20}}
...
0
votes
1answer
102 views
Maximizing trig functions in Mathematica
Just to give some context, my motivation for this programming question is to understand the derivation of the CSHS inequality and basically entails maximizing the following function:
...
6
votes
2answers
115 views
Finessing labels in BarChart
BarChart is aggravating. Why don't the following correctly display both percentages and labels?
(1)
...
1
vote
1answer
77 views
Equating two lists, element by element
Say you have two lists:
listA = {a, b, c}
listB = {d, e, f}
How would you produce a listC that equates each of the two's ...
1
vote
0answers
42 views
Workbench install 64-bit on Windows 7
I have downloaded the Workbench 2.0.0 zip file and followed the install new software -> add -> archive steps to install the workbench plugin. After that, the Workbench core and webMathematica tools ...
2
votes
1answer
87 views
Problem with Sinc[x] function and rounding
I seem to be having some trouble with the Sinc[x] function, and I think it's due to rounding, but I'm not sure.
The code is below, with relevant constants:
...



