1
vote
1answer
117 views

Fourier Transform on a Sound

I don't really know much above Fourier Transform , or how it's used in Mathematica but I want to know how I can find out, out of which Sin-waves a (static) sound is made of. So for example I take "G" ...
0
votes
0answers
30 views

Simple Sin plot generates unexpected output? [duplicate]

I an trying to do a very simple smooth Sin wave... Plot[Sin[ 2 Pi 440 t], {t, 0.0, 0.1}] ...but I am getting an unexpectedly non-smooth plot for it... What is ...
0
votes
1answer
62 views

How to speed up ReplaceAll in Table?

I am writing a code which solve a list of equations and then create a Table with resulst of equation solving. In applications where I use this code, I create a bunch of equations and my computations ...
0
votes
1answer
303 views

n-fold convolution

I am trying to calculate n-fold convolution of a function as $G^{*n}(x)$ where $G(x)=1-a*exp(-b)+b*ln(b)$. I tried this function, Convolve[G[x], G[x]^{n - 1}, x, x] but it didn't give any answer. ...
0
votes
2answers
124 views

Random geometrical graph generation

I would like to generate a random graph on $[0,1]^2$. Each node is connected to one other if the distance between two nodes is say 1/4 or less. Here is an example with 50 nodes and 200 edges I would ...
2
votes
2answers
191 views
1
vote
1answer
155 views

General function taking general number of arguments

The following is an edit of this post, for which a working solution was provided by John McGee. I have a different function and am not sure how to adapt the solution for it: I want to construct a ...
3
votes
1answer
111 views

TimeSeries - Values & Dates

How can I display a TimeSeries object in a Table or Grid so that I could see the Dates and corresponding Values next to each other? I wrote the following code: ...
1
vote
1answer
51 views

Getting result from Maximize

I'm trying to get maximization result from Maximize function to use it in later calculations. At the moment I use the following code: ...
0
votes
0answers
50 views

Trying to write a program to find an approximate harmonic function on a given graph using relation method

So given an undirected graph with two vertices that have fixed values assigned to them, a harmonic function is a function that assigns values to all other vertices such that the value assigned to each ...
4
votes
1answer
197 views

VertexRenderingFunction (or EdgeRenderingFunction) with movable nodes?

In GraphPlot, I'd like to use VertexRenderingFunction (VRF) and have the resulting object behave the same way under dragging verticies as it does when I do not use VRF. The same issue occurs for ...
2
votes
2answers
189 views

How can I make an animated demonstration of the Wigner semicircle distribution?

With Mathematica 10, it's possible to draw the semicircle distribution of R. Wigner: ...
6
votes
2answers
302 views

Integral does not converge (when it should) [duplicate]

Bug introduced in 10.0 and fixed in 10.0.2 I was looking at integrals like: Integrate[HermiteH[50, x]*Exp[-x^2], {x, 0, Infinity}] which gave me a "does not ...
4
votes
1answer
140 views

Running PowerShell commands in Mathamatica

I'm trying to execute a PowerShell command using Mathematica. Someone has made it before? I tested my command direct in PowerShell, and it worked nice, but no ideia on how can I make Mathematica to ...
1
vote
1answer
213 views

How to add error bars to a fit function in Mathematica 10?

My professor gave us the following code to fit a Lorentzian to our data. I want to add vertical error bars (with individual error found in the experiment) to the plot but I don't know how. Any ...
2
votes
1answer
102 views

Find tangency of InterpolatingFunction and circle

I am trying to use a system of equations to solve for the common tangent of a (polar) InterpolatingFunction and a circle. Unfortunately, both NSolve and FindRoot don't yield results, even when I ...
0
votes
2answers
78 views

Function that creates a table from two lists

I have two lists shown below: list1 = {(0,0,0,0),(0,0,0,1),(0,0,1,0),...,(1,1,1,1)} list2 = {1,5,5,5,...,5} How can I construct a function that outputs a table similar to this: $$\begin{array}{c|c} ...
2
votes
1answer
118 views

Odd behavior matching powers of pi

I have a long list of generated values from which I want to remove "weird" ones like Sin[Sin[1]] and Pi^2/4. However, trying to ...
0
votes
2answers
158 views

How to construct a linear feedback shift register

Are there any posts regarding the construction of a LFSR (Linear Feedback Shift Register) in Mathematica? I can't seem to find any and I am not sure how I would construct one.
1
vote
2answers
65 views

Inconsistency in arithmetic on list elements [closed]

As expected, {a,b,c} - {a,a,a} (* {0, -a+b, -a+c} *) Or the same result can be obtained with less typing, thanks to implicit duplication of the subtrahend: ...
0
votes
1answer
139 views

Discrete Fourier Transform of a vector defined on a 3D lattice

In my research I need to compute the Discrete Fourier transform of a vector defined on a 3D lattice (a cube) to the "reciprocal" lattice. This is quite new to me so before proceeding i wanted to be ...
2
votes
2answers
110 views

Coloring a map of GeoRegions

I know that I can plot multiple GeoGraphics results on the same map by using something like Show[Graphics@@p1, Graphics@@p2], but it doesn't really work (seems to ...
0
votes
1answer
64 views

Built in function to convert list of numbers into list of binary numbers [closed]

Does Mathematica have a build in way to convert a list of numbers into a list of binary numbers? If not how can this be accomplished?
3
votes
1answer
62 views

How can one create hanging indent within text?

Short of writing a highly specific function for particular text strings, is there a simple way to format text, as say in a bibliographic record, to produce a hanging indent (first line of full with, ...
0
votes
1answer
73 views

How to take (use, reuse) any data, returned by Wolfram Alpha?

Suppose I wish to use Boltzmann constant in calculations, and I queried it from Wolfram Alpha: Now, how to take any of selected values? If I copy paste I get garbage. How to perform?
0
votes
1answer
127 views

Help with functions in Mathematica

I'd like to make a function that has many parts. Doing this in something such as Java, which I am familiar with, would be simple. In Mathematica I have these "pieces", which I want to put into a ...
6
votes
1answer
285 views

How trustworthy is NMaximize?

Suppose I solve a constrained optimisation problem using NMaximize. How confident can I be of the accuracy of the result? For concreteness, suppose that F,G are ...
1
vote
1answer
92 views

How do I utilize the dynamic input field function in the manipulate function? Can I use this functionality to import a .xls from an URL dynamically?

Im trying to get my program to import a .xls for manipulation, I need to import the .xls at an url location dynamically, I did have this at the beginning of my code: ...
-3
votes
1answer
70 views

Miller-Rabin algorithm [closed]

I want to implement the Miller-Rabin algorithm in Mathematica to check if a number is prime with at least 99.99% probability. I used this: ...
1
vote
0answers
114 views

Selectively remove ticks in a plot

I would like to remove some ticks from a plot without having to edit manually the list of ticks generated automatically by Mathematica. My aim is to have a plot where the axis label are close to the ...
1
vote
1answer
71 views

How to use ListPlay and PlayRange in Manipulate

The following correctly produces a click sound: ...
1
vote
2answers
111 views

Format a formula in human readable form

Is there a way to make a formula display in a human readable form? I have something like Binomial[(10000000 - 1), x]*(1/2^24)^x and I'd like it to display using ...
1
vote
0answers
52 views

What do the default shapes/colors in DiscreteMarkovProcess Graph mean?

In making markov chains, I know how to do that, but I am curious as to what the different colors, and shapes of the vertexes in the graph output mean. as example; ...
1
vote
1answer
63 views

How to make strong assumptions?

Or put in another way, how to make a variable behave as it belongs to a specific domain, even outside the use of simplify or other commands alike? For example: ...
0
votes
1answer
58 views

EdgeRenderingFunction For 2 Vertices in a Loop

Assume there is a set of rules: set = {"A" -> "B", "B" -> "A", "B" -> "C", "C" -> "D", "D" -> "A", "C" -> "C"}; which we want to graph using ...
2
votes
2answers
96 views

Inverse of Times->Sequence

Suppose there is a list list={abc} then the replacement Times->Sequence gives ...
7
votes
3answers
363 views

Functional equivalent of a For loop referring to consecutive elements in a list

I have implemented this function which smooths the values in a list by, if it encounters a zero, replacing this entry by the average of its two neighbours (apart from the first and last values of the ...
-1
votes
1answer
49 views

How do I plot lat/long points in the Atlantic Ocean? [closed]

How do I plot lat/long points on the water? Such as the Atlantic Ocean? Here are some points I'm trying to plot: ...
1
vote
2answers
70 views

Converting lat/long to x/y coordinates, to generate random variates from a Bivariate Normal Distribution [closed]

I am trying to convert latitude and longitude points to x/y coordinates, generate random variates from a bivariate normal distribution, and then convert those random x/y points back into latitude ...
0
votes
1answer
42 views

Fine precision control in IntervalSlider

I would like to develop a simple slider for exploring a wide range of intervals on the real line. Is it possible to get the MinimalSize of IntervalSlider to work ...
0
votes
1answer
84 views

How to plot first and second row from matrix to a graph

i have this function: ...
1
vote
1answer
59 views

Replacing Logic operator List and generate combination of variables

so I'm trying to do the following starting from a list of inequalities: ...
2
votes
5answers
229 views

Making loop based off what I can say in words

I have a list of values a: {1,4,11,14} I want to print out values that satisfy b(1+a) = 0 mod 15 where b are the values from 0 to 14. The output I am wanting is ...
0
votes
0answers
41 views
0
votes
0answers
24 views

Solving an inhomogeneous partial differential equation [duplicate]

Here is my inhomogeneous partial differential equation: $$ \left ( \frac{\partial^2 }{\partial \rho^2}-\frac{1}{\rho} \frac{\partial }{\partial \rho} + \frac{\partial^2 }{\partial z^2}\right ) \psi= ...
-3
votes
3answers
166 views

How can I plot a polygon with n sides inscribed in a circle and show the area?

I am doing some work on Archimedes and want to show what the area of a regular n-sided polygon is within a circle. My professor from two years ago was able to show it with an adjustable slider that ...
1
vote
3answers
96 views

Sorting a list of points based on their euclidean distance

I need to take a list of random points and then sort them from least to greatest based on their Euclidean distance from a certain point. How would I do this?
1
vote
1answer
76 views

ListPlot and AspectRatio

Here is a simple scenario ...
1
vote
1answer
69 views
1
vote
0answers
60 views

InstallService to Brenda

all, I do not have good understanding of the Web Services. However, following the instructions on BRENDA (enzyme database) web site, I can use their SOAP service in perl programs. Then I tried to use ...

15 30 50 per page