# All Questions

139 views

### Generating a list of specific intermediate numbers associated with continued fractions

First of all, I don't know how ContinuedFraction[] or Convergents[] are implemeneted, and I think it is immaterial to my ...
131 views

### Finding the root of a nested function with small values

I have reduced an error in my program to this line of code: FindRoot[Nest[# (1 - #) k &, 1/2, 2^4] - 1/2, {k, 3.5}] It works for $2^1, 2^2, 2^3, 2^4,$ but ...
100 views

### Significant platform-dependent efficiency when importing data?

I'm curious, as I understand that answer this way: If you are using a Linux derivative or something like cygwin on Windows, then this is an efficient solution for reading only the third field ...
272 views

### Coloring with Hue for a function on a lattice grid

I wish to color a 2-dimensional lattice grid according to the value of a function at each lattice-node. More specifically, if I have 9 angles in a 3x3 array, ...
323 views

### Runaway MathKernel!

I was running a simulation and everything went south (my fault, stupid coding error). So I quit the kernel. Everything was running very slowly, as if it were doing some kind of large calculation. ...
875 views

### Plot FindRoot for non-trivial function

I would like to plot the results of FindRoot over certain range of inputs. I tried to do this with the code: ...
124 views

### Is it possible for me to explicitly specify a point list for SpatialGraphDistribution?

The function RandomGraph[SpatialGraphDistribution[n, r]] generates a random geometric graph over $[0,1]^2$ where vertices are connected if they are within a ...
737 views

### Using ChemicalData to make molecule graphics

I would like to take the acetone $((CH_3)_2CO)$ and chloroform $(HCl_3)$ molecules that Mathematica's chemical data provides, and plot them together. I want to show how chloroform can hydrogen bond ...
89 views

### Change “Format type of new input cells” to InputForm

In Preferences -> Evaluation there is a menu to change "Format type of new input cells" and the only options available are: StandardForm, TraditionalForm, and Raw InputForm. Is it possible to set ...
116 views

### BarChart without axes neglects the last zero of a list

Creating a BarChart with {1, 2, 3, 0} as BarChart[{1, 2, 3, 0}, Axes -> False, Frame -> True] gives me only the first three bars, a chart identical to just ...
877 views

### Plotting multiple parametric functions with different intervals

I want to make a parametric plot like this: ParametricPlot[{{2 t, -10 t^2}, {t, 2 t}}, {t, 0, 2}] I have tried the following but it doesn't work: ...
105 views

From time to time I get this error message when I save my .m file in Wolfram Workbench: LinkObject::linkv: Argument Null in Null is not a valid LinkObject I can't really figure out what causes this ...
442 views

### Changing default range for x- and y-axis in ListPlot3D

How do I change the default values for the x- and y- axis in this example without altering the z-axis values? For instance, I want the x-axis to follow a range based on "x= 0.01 i+3" (not just i) , ...
351 views

### Preparing data for making an ErrorListPlot

I often have the following notebook in Mathematica, which I use to make a dataset and associated errors: ...
172 views

### Manipulate fails with f[x]=x^k/(1+x^k)

I have this code: Clear[f] f = Function[x, x^k/(1 + x^k)]; Manipulate[Plot[f[x], {x, 0, 5}], {k, 1, 10}] But nothing draws as I move the slider. Am I missing ...
137 views

### Avoiding the re-evaluation of a RegionPlot3D

Is there a simple way to save the output from RegionPlot3D so as to avoid re-evaluating when the notebook is re-opened and Show ...
629 views

### Variable name string to expression

I'm not sure how to name this problem appropriately. But anyway. I have, say, three variables (arrays in my case), which I call: A1, A2, A3 I would like to ...
312 views

### How to draw Graphics3D items with straight border lines?

I want to make a Polygon with straight border lines. For that purpose I wrote the following code, but it doesn't show straight borders. ...
648 views

### Controlling Bar Color in BarChart precisely [duplicate]

I'm trying to control the color of individual bars in a BarChartwhen I pass a 2 dimensional list of data to plot. What I want to accomplish is that for each pair of ...
133 views

### How to transform an expression using algebraical instead of pattern rules [duplicate]

I would like to transform rules algebraically. A very simple example would be: - k^2 - 2 k x + x^2 /. {2*k -> 1} This transforms to: - $$k^2-2 k x+x^2$$ ...
528 views

### Importing data sets from plain-text files and performing operations on them

I am working with a lot of daily weather files in the txt format. I need to calculate a daily quantity from each of them, e.g., daily light intensity, which ...
192 views

### Integer partitions in all orderings

I want to partition an integer into $k$ integers all possible orderings. This can be done in the following way ...
464 views

### Exporting 2D graphics to DXF

I have a design that I've produced in Mathematica, consisting of two sets of Rectangle objects. The second set is a mirror image of the first and was produced with ...
72 views

### How do I eliminate the breaks in a 3D plot with a Max or Min function? [duplicate]

Whenever I make a 3D plot using the Max or Min functions, I get breaks in the plot when it switches from one expression in ...
232 views

### Can my permutations function be defined using iteration?

I have two functions, tuples and perm. They are similar. ...
205 views

### Manipulate - why does the axis scale change when I release the slider?

I was playing around with Manipulate to demonstrate simple geometric idea of conic sections and put this little sample together. When i move the slider it moves my plane, which is what I expect. ...
282 views

### Using NDSolve solution as initial condition for another NDSolve

I have solved a PDE numerically using NDSolve, and I now need to be able to use that solution as an initial condition for another ...
418 views

### GraphPlot only working when I evaluate twice

I have some code that builds a graph and some vertex coordinates, but when I evaluate it I get a message that the list of coordinates is not valid and the graph is not valid and it shows the output as ...
199 views

### Problem with high parameter values in ParametricPlot

I tried to plot the following function as a Parametric Plot. When I include values for w up to 1 the plot looks fine, but I need this plot for values up to 100 or 1000. ...
454 views

### define the range of Longitude from 0-360 in the World plot from CountryData

How can I change the Longitude range to 0-360 in the such plots? ...
171 views

### Programmatically writing to a notebook in TraditionalForm

I'm trying to get a Cell to appear in TraditionalForm when using NotebookWrite. Here is the closest I can get: ...
270 views

### Misaligned DensityHistogram, DistributionAxes & PlotRange

data = RandomReal[NormalDistribution[0.5, 0.1], {10000, 2}]; DensityHistogram[data, PlotRange -> 1, Method -> {"DistributionAxes" -> "Histogram"}] The ...
364 views

### Obsolete Signal Processing functions

I need some tools to detect the fundamental frequency and pitch of a sound. I Googled for "pitch detect" and found some .nb files that do these tasks, but all the files are in Mathematica 3.0 format. ...
239 views

### Dynamically updating interactive objects in Mathematica

Is it possible to create interactive code in Mathematica (via EventHandler[] or Manipulate[] perhaps) that continually updates some calculation based on external data in the time when no user input is ...
223 views

### Scale label problem of multiple ListLogPlot graphs

Consider the following code: ...
506 views

### How do you show a cone inside of a sphere?

I have a sphere of radius 5 and a cone (i.e. z=√(x^2+y^2)) inside of it. I can show them separately, but I'd like to show them together. I've tried a few tricks with opacity, implicit specifications, ...
600 views

### Differential equations with jump conditions

Suppose I want to solve an ODE with a DiracDelta source term. In the following example, DSolve does it correctly while ...
364 views

### Histogram of runs

What I would like to do is generate a histogram of the consecutive time spent under a level. For example if the level I was interested in was 1.0 and I had this data; ...
399 views

### Use output from Plot3D as an object in Graphics3D that I can transform

I'm trying to draw up an optical system where I can show an example of wavefront error on an exit pupil. It would be great if I could take the results of a 3D function from Plot3D and use it as a ...
349 views

### Notification sound when simulation done? [duplicate]

Possible Duplicate: Customize front end to add notifications when evaluation finishes? How to setup sound alert notification when simulation is complete? I need to do something else while ...
925 views

### How to define the Einstein summation convention in Mathematica?

How to define a Einstein summation convention in Mathematica? Say, how to let Mathematica know T[i,i] equals ...
739 views

### How to find all roots and maxima and minima and graph them

I need to find all the roots of this function. I know it is simple to find by hand, however, I wish to learn how to do it so I can apply it later. The problem is that it only gives me one root. ...
451 views

### FindRoot errors

I'm trying to solve a system of two equations in two variables for some range of parameter values. I use ContourPlot to see where I should look for a solutions and ...
353 views

### Is there a way to do conditional matrix loop using 'continue'

I have the following: ...
303 views

### Fourier Coefficients in Mathematica [duplicate]

I'm calculating Fourier Coefficients by hand and trying to verify them in Mathematica. However, in Mathematica I get them wrong by a factor of 2. Is there some part of the Mathematica functions I'm ...
768 views

For an arbitrary function $f(x,y)$ I am defining functions LogMT1 and LogMT2 as follows, ...
414 views

### How to leave function unevaluated programmatically?

Is it possible to write a function in such manner, that it can be either evaluated or left unevaluated? This is a general question. Sample below is just a sample. No need to find solution for this ...
298 views

### local variable naming & symbolic argument

I'm stuck here with my variable assignment in this scenario ...