2
votes
0answers
125 views

I am not able to plot legends in list density plot using c program. Getting blank legend

I have tried to load the "PlotLegends'" package. Here is my code, ...
2
votes
1answer
166 views

How to combine multiple Graphics3D scenes into a single Graphics3D scene?

ProteinData["A2M", "MoleculePlot"] gives you a Graphics3D object below. I'd like to display multiple of these proteins in a ...
6
votes
1answer
205 views

Behavior of Graphics`Mesh`InPolygonQ with self-intersecting polygons

Playing around with some of the answers in the question How to check if a 2D point is in a polygon? I noticed that: Graphics`Mesh`InPolygonQ[poly,pt] Displays ...
1
vote
1answer
154 views

How can I reproduce some surface plots in Mathematica?

I am not really familiar with Mathematica. I wonder if some one can help me draw any of the following surfaces. I will be appreciative if you tell me how to use equations and ...
12
votes
2answers
322 views

Color Histogram3D by Bin Location

I am using a Histogram3D plot to view the correlation of the R & G of an RGB image. Naturally, I want the bins to have a color corresponding to their $x$, $y$ ...
1
vote
0answers
61 views

Convert ImageSize to FieldSize [duplicate]

How might I construct a function called EmToPX[p] such that the following 2 InputFields would be the same width. If not please ...
3
votes
2answers
535 views

FindFit for a differential equation model with multiple variables?

I'm trying to figure out how to use FindFit with a multivariable differential equation model and data. I've successfully made it work for the one-variable version ...
0
votes
1answer
128 views

Plotting blends of colors over lists of lists in 3D

I have a list of lists containing spectral data, many thousands of points long. Each sublist contains 13 parts, and I need to plot them in 3D with a blend of RGB colors derived from the spectral ...
1
vote
0answers
61 views

How to take the log of an equation? [duplicate]

I am researching a software reliability model that has many parameters that need to be estimated. I want to use a maximum likelihood estimator (MLE) to estimate those parameters, but my model is too ...
9
votes
4answers
769 views

Plotting an epicycloid

I am fairly new to Mathematica and I cannot figure out how to plot an epicycloid. I have plotted some neat looking things in my attempts, but can't make one. I am not looking to make an animation, ...
0
votes
1answer
157 views

Solve doesn't return all solutions [duplicate]

I got a simple cubic equation as input, but Mathematica does not give all solutions, why is this the case here? ...
9
votes
1answer
394 views

ParallelEvaluate for function minimization

Is there a parallelized version of a minimization routine available in Mathematica? The objective function is non-linear and the gradients have to be numerically computed. Every function evaluation ...
7
votes
1answer
193 views

Name of current Notebook

I've searched the documentation, this forum and with google, but I was not able to find how to ask Mathematica to give back the name of the current notebook file one is working on. Perhaps something ...
7
votes
1answer
267 views

Is it possible to construct a topological map of road network of Bangalore?

I saw this example wherein the CityData gives the map of a city. But this is available for a relatively small set of curated regions. Is it possible to extract ...
0
votes
0answers
122 views

How does Mathematica solve eigenvalues?

I believe mathematica uses some techniques beyond our book. According to the text book it is not possible to solve eigenvalues of which the matrix has not completely eigenvectors, or of those matrix ...
2
votes
1answer
186 views

ParametricPlot3D[] Question

I know this is very similar to a previous question I asked, but there are some differences. When I graph: ...
6
votes
2answers
385 views

Export notebook to pdf in landscape orientation

Assuming the following is a notebook with a linebreak: How might I export a landscape pdf (preferred although other formats could work) such that each cell content each group of cells above and ...
1
vote
2answers
357 views

Input as an ordered pair instead of as a matrix [closed]

when I input pp = {{2.0, 10}, {4, 19}, {6, 31}, {8, 40}, {10, 51}, {12, 59}, {14, 70}} and press enter I get a matrix output. I want it as an ordered pair to find the best fit line, using ...
1
vote
4answers
223 views

Calculating the median difference between elements with a (particular pair) of consecutive integer indices residing in the same sublist

NOTE: I formally made a serious mistake in the first example provided. pointLists[[1]] had an extra element, and we should have a guarantee that ...
4
votes
2answers
367 views

How to exclude some points to make them more evenly distributed in a figure

If there are some points in a figure, how can I exclude some points to make them more evenly in the figure? 'Evenly' here can be defined as the number of points in each $0.01*0.01$ box is at most one. ...
4
votes
4answers
498 views

Replace For-loop with functional code

I am very new to Mathematica. I have code written using for loops. I want to rewrite it using Map/Thread but I am not sure how ...
3
votes
6answers
156 views

Change sublist based on position

Supposed that: list = {2, 3, 5, 7, 9}; sublist = {{3, 3, 5}, {2, 2, 2, 7, 9}}; I want to change each sublist in sublist as following: Find the positions of ...
4
votes
0answers
173 views

Memory problem with producing complex graphics of general type

The problem I am about to ask has appeared once here: Memory Leak in Frontend - anyone know a workaround?. However, in this question I would like to put it in a bit different context. Problem recipe: ...
5
votes
1answer
656 views

All possible topological orderings of a graph

TopologicalSort[] returns one of many unique orderings. From wikipedia: if a topological sort does not form a Hamiltonian path, the DAG will have two or ...
1
vote
1answer
144 views

Minimum value with two factors

Approximate the minimum value of $2e^{x-2}-6x+xe^{x-2}$. Is my input correct? If not can you please correct it? ...
6
votes
1answer
239 views

Intersection of two functions in SphericalPlot3D

How do I draw the intersection of these functions? ...
6
votes
1answer
464 views

Issue with NSolve

I defined the following function: sw[ θ_, ϕ_, h_] = 1/2 Sin[2 (ϕ - θ)] + h Sin[ϕ] Based upon whether I use Solve or NSolve, ...
10
votes
1answer
419 views

Why does Mathematica return a Fourier transform for a function for which it is not defined?

The following function $$g(x) = (1 + x^{1/a} )^a $$ should NOT have a Fourier transform, as far as I am aware, for any real values of $a$ since $g(x)$ is not nice in the sense of decays quickly ...
1
vote
1answer
573 views

How to plot a polygon and a line on the same graph?

I have to plot the line 1 + 4 t, 2 + 5 t, 1 + 12 t and the polygon with points {2, 3, 4}, {1, 4, 5}, {3, 3, 3} in the same graph to see if the line goes through the polygon. I was able to get them to ...
1
vote
3answers
126 views

Replace inside a Held expression separate context

How do I replace content inside a Held expression without local values coming through? For example if you run the following code you get g[2] instead of ...
16
votes
2answers
1k views

Is there something like DensityPlot3D to visualize atomic orbitals?

I'm visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the DensityPlot function works well, and with something ...
1
vote
1answer
429 views

Coloring Bifurcation Diagram

I have the following Pitchfork bifurcation: f[x_, r_] := r x - x^3 I was able to find some nice code on this site to draw up the Logistic Map. I have the ...
3
votes
1answer
241 views

Define operator algebra

My objective is to work out commutators like this $$[f(x,y)\partial_x^2+g(x,y)\partial_x+h(x,y),a(x,y)\partial_x^2+b(x,y)\partial_x+c(x,y)]$$ or ...
6
votes
3answers
187 views

Can't force UnitConvert to be evaluated in Plot

I'm trying to use new units support in Mathematica 9. When I Plot Quantity functions everything is OK. ...
0
votes
1answer
135 views

How to get the coordinates of the point that the mouse touch?

How to get the coordinates of the point that the mouse touch? When my mouse touch the picture that the Mathematica touch ,I hope it can return the coordinates?
4
votes
2answers
181 views

How do I export a text file with strings on different lines?

I would like to Export a text file, and use paragraph / ENTER commands to place different strings on different lines. Say we have three strings - str1, str2, and ...
4
votes
1answer
141 views

How hide symbolic definition of a function?

How can the actual definition of a function be hidden from a user? I want the user of a notebook to be able to evaluate a real-valued function f of a real variable at any particular numeric input yet ...
6
votes
2answers
186 views

Evaluating selected expression using keyboard shortcut

Imagine that in this toy code I want to evaluate just the selected (blue) expression: To get as output result: {09/14,09/15,09/16,09/17,09/18,09/19,09/20} There is some shortcut to do this? I'm ...
11
votes
2answers
446 views

Is there a triangle like this?

I want to find the numbers $a$, $b$, $c$, $d$ of the function $y = \dfrac{a x + b}{c x + d}$ so that the triangle $ABC$ with three points $A$, $B$, $C$ have integer coordinates and lies on the graph ...
1
vote
0answers
29 views

How to achieve the real component of my expression? [duplicate]

How to achieve the real component of my expression? Input: expr = Csc[θ/2] Sin[(n θ)/2] (Cos[1/2 (1 + n) θ] + I Sin[1/2 (1 + n) θ]); Re[expr] ...
0
votes
2answers
127 views

Manipulate and function definition

I have read the documentation, and know the way Initialization works with Manipulate, but I can't seem to understand why this piece of code ...
0
votes
0answers
59 views

CreateDocument using a specific Evaluator (Kernel)

I was trying to build a button to create a new document that contained a dynamicaly changing table. In the parent notebook i am using another kernel - not the usual "Local". The problem is that in the ...
0
votes
3answers
364 views

How can I solve my system of two simultaneous equations?

How to solve the system {b - a*Sqrt[a^2 + b^2 + 1] - a^2*(a*b - Sqrt[a^2 + b^2 + 1]) == 0, a - b*Sqrt[a^2 + b^2 + 1] - b^2*(a*b - Sqrt[a^2 + b^2 + 1]) == 0} ...
3
votes
1answer
63 views

Column and CellLabel

Is it possible to add a CellLabel over multiple lines? When trying the code SetOptions[ NotebookSelect[mb], CellLabel-> Column@{"line 1", "line 2"} ] with a ...
0
votes
2answers
178 views

Animate a sequence of bitmap-like data Mathematica 9.0.0

I am new to Mathematica, but already find it a very nice tool. Right now I am trying to create an animation of numeric data, where each frame corresponds to a distinct text file with a table-like ...
2
votes
1answer
42 views

Options CellLabel not showing

I'm back with the labels and tags questions! Here is my code: mb = CreateDocument[Null, ShowCellTags -> True]; In the new document, I create a new cell, add ...
6
votes
1answer
77 views

Setting PropertyValue for VertexWeight is not persistent

g = CompleteGraph[8, VertexSize -> Medium]; PropertyValue[{g, VertexList[g][[1]]}, VertexWeight] = 10; PropertyValue[g, VertexWeight] ...
0
votes
1answer
84 views

how to permute bit strings and manipulate their elements

I want to write a function(has 2 paremeter, n=range,k=number of 1 digits) which finds all probable combinatorics of arbitrary bit strings and evaluate sum of tensor ...

15 30 50 per page