<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel rdf:about="https://community.wolfram.com">
    <title>Community RSS Feed</title>
    <link>https://community.wolfram.com</link>
    <description>RSS Feed for Wolfram Community showing questions tagged with Discrete Mathematics sorted by most viewed.</description>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/1733404" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/148526" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/617724" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/777582" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/128136" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/535997" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/612319" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/1154374" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/1620017" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/442573" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/571483" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/2397426" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/1395404" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/356717" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/481830" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/919714" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/511713" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/972050" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/906971" />
        <rdf:li rdf:resource="https://community.wolfram.com/groups/-/m/t/917888" />
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/1733404">
    <title>[WSC19] Visualizing Fourier Synthesis</title>
    <link>https://community.wolfram.com/groups/-/m/t/1733404</link>
    <description># Visualizing the Fourier Syntheisis&#xD;
[Link To GitHub][3] &#xD;
## Introduction&#xD;
The goal of the project is to generate Visualizations for how the Fourier series creates approximation of curves. The end result is a function that is able to generate two different graphics to show using Circles to represent the trigonometric waves used in the Fourier Series.The Fourier Series in Calculus is the summation of trigonometric waves in order to represent an approximation of a curve. Since the Fourier Series uses trigonometric functions which are created by the rotation of a circle, it is possible to link together multiple rotating circles and recreate the curve.&#xD;
## Development&#xD;
### Understanding the General Idea&#xD;
First,I had to learn Calculus and trigonometry in order to understand how the Fourier Series works. At first I wanted a proof of concept that I was able to visualize how the addition of sinusoidal could result in an approximation of the curve. So I spent some time to hard code rotating radii of circles and orbiting circles. I created orbiting circles by setting the centers of successive circles as a sinusoidal functions so that they would be following a track built by the previous circle&amp;#039;s circumference.&#xD;
&#xD;
     Animate[&#xD;
     	       Graphics[&#xD;
      	        	{&#xD;
       	        	Line[{{0, 0}, {5*Cos[time], 5*Sin[time]}}],&#xD;
     	        	Circle[{0, 0}, 5],&#xD;
      			    Circle[{5*Cos[time], 5*Sin[time]}, 3],&#xD;
      			    Line[{{5*Cos[time], 5*Sin[time]}, {3*Cos[2 time] + 5*Cos[time], 3*Sin[2 time] +     5*Sin[time]}}],&#xD;
    			    Circle[{3*Cos[2 time] + 5*Cos[time], 3*Sin[2 time] + 5*Sin[time]},2],&#xD;
      			    Line[{{3*Cos[2 time] + 5*Cos[time], 3*Sin[2 time] + 5*Sin[time]}, {5*Cos[time] + 3*Cos[2 time] + 2 Cos[3 time], 5*Sin[time] + 3*Sin[2 time] + 2 Sin[3 time]}}],&#xD;
      			 }&#xD;
     		 ],&#xD;
     	{time, 0, 2*Pi}, AnimationRunning -&amp;gt; False]&#xD;
&#xD;
&#xD;
&#xD;
The lines are the rotating arms and connect one center of a circle to the next circle&amp;#039;s center. The code above shows the nesting of coordinates to create the moving parts using the &amp;#034;Animate&amp;#034; function. If the x-coordinates use &amp;#034;Cosine&amp;#034; and the y-coordinates use &amp;#034;Sine&amp;#034; functions, then the rotating parts will move counter-clockwise.If you switch the functions, then the arms rotate clockwise. (This information proves to be useful later on in the developing process)&#xD;
&#xD;
&#xD;
### Creating the Functions&#xD;
I went through many iterations of my code an restarted on a new approach three times. The hardest part of this project was getting the information form the functions to be in a certain format so that it could be displayed in a cohesive manner. This issue rose form creating a generalized function that would work for most if not all scenarios.&#xD;
#### Approach One &#xD;
&#xD;
At first I tried to create multiple helper functions to manipulate the information and create it modular. The code below takes in a radius list, frequency list, and the number of circles needed, and then creates the nested list that is used for the moving objects in the graphics. The function is then called multiple times (I at that time had not optimized by code to run quickly) and used them to create list of Graphics Primitives. This one of the more developed versions of this method where the user physically inputs the amplitude and radii of the waves used to generate the desired function. In earlier versions I had an issue with getting animate to work; when I was not using slots in order to input lists and other information. I later found out that the function &amp;#034;Animate&amp;#034; had a &amp;#034;HoldAll&amp;#034; attribute which meant that it would not evaluate anything that is inputted directly in the Animate. Therefore, I had to adapt my code to evaluate outside the Animate and then be inserted into the Animate function via Slot Machines. &#xD;
&#xD;
	ClearAll[fourierSeriesGraphicsV3]&#xD;
	fourierSeriesCoordinates[numberCircles_,radiusList_List,frequencyList_List]:=&#xD;
		With[&#xD;
			{protoList=MapThread[&#xD;
					{#1*Cos[#2*time],#1*Sin[#2*time]}&amp;amp;,{radiusList,frequencyList}]&#xD;
					},&#xD;
		Plus@@@Table[protoList[[;;n]],&#xD;
		{n,1,Length[protoList]}]//Prepend[{0,0}]&#xD;
	]&#xD;
&#xD;
	fourierSeriesGraphicsV3[numberCircles_,radiusList_List,frequencyList_List]:=&#xD;
		With[&#xD;
		{&#xD;
			coordinateList=fourierSeriesCoordinates[numberCircles,radiusList,frequencyList],&#xD;
			protoList=fourierSeriesCoordinates[numberCircles,radiusList,frequencyList],&#xD;
			lastCoordinate=Drop[Apply[List,&#xD;
				MapThread[&#xD;
					Circle,{&#xD;
						Drop[&#xD;
							fourierSeriesCoordinates[10,Reverse[Range[10]],Range[10]],-1],&#xD;
							Reverse[Range[10]]}&#xD;
						]//Last],-1][[1,2]],&#xD;
			circleList=Evaluate[&#xD;
					MapThread[&#xD;
						Circle,{&#xD;
							Drop[fourierSeriesCoordinates[numberCircles,radiusList,frequencyList],-1],&#xD;
							radiusList}&#xD;
						]&#xD;
					]&#xD;
		},&#xD;
&#xD;
	Animate[&#xD;
		Graphics[{#1,#2,Line[Last[coordinateList],{Total[radiusList]+10,lastCoordinate}]}],&#xD;
	{time,0,2*Pi},&#xD;
	AnimationRunning-&amp;gt;False]&amp;amp;@Evaluate[&#xD;
		(Line[coordinateList]),(circleList)&#xD;
	]&#xD;
	]&#xD;
&#xD;
### Approach Two&#xD;
Although the previous method works, it is hard to know exactly if you are creating the desired function,Which means that you need to know what the radii/amplitudes and frequency where before you used this function. Hence my second approach. This approach was more of a function that would be built as an addition to the previous method. The new addition included a function built around the inbuilt function &amp;#034;FourierSeries&amp;#034; that took in function, variable, and number of terms as inputs and returned the equation of the approximation of the function as complex numbers.I had to use the inbuilt function &amp;#034;ComplexExpand&amp;#034; to get the equation in terms of Sine and Cosine. If the input function was even, then the Sine terms would cancel, and if the function is odd, then the Cosine terms canceled out.&#xD;
&#xD;
&#xD;
	fourierInputV2[inputFunction_,variableUsing_,numberOfTerms_Integer]:=&#xD;
	With[&#xD;
		{protoSeries=FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand,&#xD;
		manipulateSeries=Drop[Apply[List,FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand],1],&#xD;
		protoCoordinateSeries={&#xD;
			{&#xD;
	Select[Drop[Apply[List,FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand],1],!FreeQ[#,Cos]&amp;amp;],&#xD;
					Select[Drop[Apply[List,FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand],1],!FreeQ[#,Cos]&amp;amp;]/.Cos-&amp;gt;Sin&#xD;
				},&#xD;
				{&#xD;
					Select[Drop[Apply[List,FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand],1],!FreeQ[#,Sin]&amp;amp;],&#xD;
					Select[Drop[Apply[List,FourierSeries[inputFunction,variableUsing,numberOfTerms]//ComplexExpand],1],!FreeQ[#,Sin]&amp;amp;]/.Sin-&amp;gt;Cos&#xD;
				}&#xD;
			}	&#xD;
		},&#xD;
&#xD;
			Join[&#xD;
				MapThread[List,{&#xD;
					Select[manipulateSeries,!FreeQ[#,Cos]&amp;amp;],&#xD;
					Select[manipulateSeries,!FreeQ[#,Cos]&amp;amp;]/.Cos-&amp;gt;Sin&#xD;
				}],&#xD;
		&#xD;
				MapThread[List,&#xD;
				{&#xD;
					Select[manipulateSeries,!FreeQ[#,Sin]&amp;amp;],&#xD;
					Select[manipulateSeries,!FreeQ[#,Sin]&amp;amp;]/.Sin-&amp;gt;Cos&#xD;
				}&#xD;
			]&#xD;
		]&#xD;
]&#xD;
&#xD;
&#xD;
### Final Approach And Why it worked&#xD;
#### Creating a New Visual&#xD;
For my final approach, I used a pair of functions called &amp;#034;FourierCosCoefficient&amp;#034; and &amp;#034;FourierSinCoefficient&amp;#034; in order separately get the radii of the circles. Then the many variables are used to artificially stitch together the coefficients and the frequencies; the code is using a descriete Fourier Transform, thus allowing me to artificially generate the frequencies used. Then the artificially generated Fourier series is used to generate coordinates. In the beginning I had the x coordinates to be in terms of Cosine and y coordinates in terms of Sine which caused the rotating parts to move in the counter clockwise direction. This function then creates individual moving plots which are then combined with the circles through the &amp;#034;Show&amp;#034; function to give the illusion that the circles are creating the plots. This function is named &amp;#034;unblendedCosCircleSmoothie&amp;#034; because this function returns the separate waves that were added to create the approximation, hence the &amp;#034;ingredients&amp;#034; in the &amp;#034;smoothie.&amp;#034; I created this function as a demonstration to show how separate waves and circles can create function when combined together; the different steps of the process would be a good visual aid in understanding the concept of what the Fourier Series does. Below there is an example of the function that is used for the even functions. For the odd functions I replaced a few operations and switched wherever it Cos to Sine and vise-versa. &#xD;
&#xD;
![unblend circle][1]&#xD;
&#xD;
	ClearAll[unblendedCosCircleSmoothie]&#xD;
&#xD;
	unblendedCosCircleSmoothie[function_,variable_Symbol,numCir_Integer]:=&#xD;
	Block[&#xD;
		{&#xD;
			fourierCoeff=Table[FourierCosCoefficient[function,variable,p],{p,1,numCir}],&#xD;
			color=Drop[Hue[#]&amp;amp;/@Range[0,1,(1/numCir)],-1],&#xD;
			circleList,basicCoord,manipulatedCoord,maxRadius,lineList,plotList,styledLines,prePlot&#xD;
		},&#xD;
		circleList=Circle[{-maxRadius-5,0},#1]&amp;amp;/@Abs@fourierCoeff;&#xD;
		&#xD;
		basicCoord=MapThread[Times,{fourierCoeff,Cos[Range[numCir]*variable]}];&#xD;
		manipulatedCoord=Transpose[{basicCoord-maxRadius-5,basicCoord/.Cos-&amp;gt;Sin}];&#xD;
		maxRadius=Max[Abs@fourierCoeff];&#xD;
		lineList=Line[{{-maxRadius-5,0},#1,{0,#1[[2]]}}]&amp;amp;/@manipulatedCoord/.variable-&amp;gt;$time;&#xD;
		styledLines=MapThread[Style,{lineList,color}];&#xD;
		&#xD;
		prePlot=MapThread[Times,{fourierCoeff,Cos[(Range[numCir]*(variable+$time))-(Pi/2)]}];&#xD;
		plotList=Plot[#1,{variable,0,10},PlotStyle-&amp;gt;#2]&amp;amp;@@@(Transpose[{prePlot,color}]);&#xD;
		&#xD;
		Animate[&#xD;
			Show[&#xD;
				Graphics[{Sequence@@#1,Sequence@@#2},Axes-&amp;gt;True],&#xD;
				Plot[#3,{variable,0,10},PlotStyle-&amp;gt;#4,PlotRange-&amp;gt;All],PlotRange-&amp;gt;All&#xD;
				],&#xD;
		{$time,0,-2Pi},AnimationRunning-&amp;gt;False]&amp;amp;@@Evaluate[{circleList,styledLines,prePlot,color}]&#xD;
&#xD;
#### Creating the Nested Visual&#xD;
The following function is structured similar to the previous algorithm. However, the difference is that now the centers of the circles are not static and are changed so that they create a chain. There is an algorithm that takes the set of coordinates and nests them together so that the circles follow an orbit. Another difference in this function is that instead of creating different rotating arms form the origin in order to color them, I was able to insert the entire nested function list into the line which created a line that appeared to be segmented. &#xD;
&#xD;
![circle chain][2]&#xD;
&#xD;
	ClearAll[circleCosSmoothie2]&#xD;
	circleCosSmoothie2[function_,variable_Symbol,numCir_Integer]:=&#xD;
		Block[{&#xD;
			fourierConstant=FourierCosCoefficient[function,variable,0]//ComplexExpand,&#xD;
			fourierCoeff=Table[FourierCosCoefficient[function,variable,p],{p,1,numCir}],&#xD;
			basicCoord,manipulatedCoord,lastYCoord,totalRadius,combinedCir,cirCenter,&#xD;
			cirArguments,finalPlot,lineSeries,centerOfFirstCir,listOfCoord,lastLinetoYaxis,&#xD;
			lastXCoord,plotCoord,plotAllign&#xD;
	&#xD;
	&#xD;
	},&#xD;
	&#xD;
	totalRadius=Total[Abs@fourierCoeff];&#xD;
	basicCoord=MapThread[Times,{fourierCoeff,Cos[Range[numCir]*$time]}];&#xD;
	manipulatedCoord=Join[&#xD;
		Take[&#xD;
			Transpose[&#xD;
			{(basicCoord-totalRadius-5)/.Cos-&amp;gt;Sin,basicCoord}],1],&#xD;
		Drop[Transpose[{basicCoord/.Cos-&amp;gt;Sin,basicCoord}],1]];&#xD;
	manipulatedCoord=(Plus@@@Table[&#xD;
				manipulatedCoord[[;;n]],&#xD;
					{n,1,Length[manipulatedCoord]}]//Prepend[{-totalRadius-5,0}]);&#xD;
								&#xD;
	lastYCoord={0,Take[Take[manipulatedCoord,-1]//Flatten,-1]};&#xD;
	plotCoord=Total[MapThread[Times,{fourierCoeff,Cos[((Range[numCir])*(variable+$time))]}]];&#xD;
	cirCenter=Drop[manipulatedCoord,-1];&#xD;
	cirArguments=Transpose[{cirCenter,Abs@fourierCoeff}];&#xD;
	&#xD;
	lastLinetoYaxis=Prepend[Take[Take[manipulatedCoord,-1]//Flatten,-1],0];&#xD;
	&#xD;
	combinedCir={Circle[#1,#2]}&amp;amp;@@@(#1&amp;amp;/@cirArguments);&#xD;
	lineSeries= Line[#1]&amp;amp;@(Append[manipulatedCoord,lastLinetoYaxis]);&#xD;
&#xD;
	Animate[&#xD;
			Show[&#xD;
				Graphics[{Sequence@@#1,#2},Axes-&amp;gt;True],&#xD;
				Plot[#3,{variable,0,3*#4},PlotRange-&amp;gt;Full],&#xD;
				PlotRange-&amp;gt;{{-3*#4,3#4},{-#4,#4}}&#xD;
								],&#xD;
		{$time,0,-2Pi},AnimationRunning-&amp;gt;False]&amp;amp;@@Evaluate[{combinedCir,lineSeries,plotCoord,totalRadius}]&#xD;
	&#xD;
	&#xD;
	]&#xD;
&#xD;
#### Making a Funciton that works for all curves&#xD;
![a non symetirc function][4]&#xD;
&#xD;
Unlike the other functions, this function uses the FourierSeries function and then extracts data from the equation itself (There are more detailed comment on what each step does in the code ). I turn the equation into a list and then separate the sine and cosine terms into different lists. Then a little bit more modification is needed to extract the coefficients which was done by replacing all the terms in a specific pattern to 1 so that it would multiply out and only leave me with the coefficients. Then I have functions similar to the previous ones which create a list of circle and line Graphics Primitives&#xD;
&#xD;
	ClearAll[circleSmoothietheRest]&#xD;
&#xD;
	circleSmoothietheRest[function_,variable_,numCir_]:=&#xD;
	Block[&#xD;
	{proto=FourierSeries[function,variable,numCir]//ComplexExpand,protoList2,cosList,sinList,cosCoeff,sinCoeff,&#xD;
	basicCosCoord,basicSinCoord,totalRadius,manipulatedCosCoord,manipulatedSinCoord,manipulatedCoord,&#xD;
	lastYCoord,plotCoord,cirCenter,cirArguments,lastLinetoYaxis,combinedCir,lineSeries,range,fourierCoeff},&#xD;
&#xD;
	protoList2=Drop[Apply[List,proto],1];&#xD;
	cosList=Take[protoList2,numCir];&#xD;
	sinList=(Apply[Plus,Partition[Drop[protoList2,numCir],2],{1}]);&#xD;
	cosCoeff=ReplaceAll[#1,Cos[x_]-&amp;gt;1]&amp;amp;/@cosList;&#xD;
	sinCoeff=(ReplaceAll[#1,Sin[x_]-&amp;gt;1]&amp;amp;/@sinList);&#xD;
	totalRadius=Echo@(Abs@(Total[Abs@cosCoeff]+Total[Abs@sinCoeff]));&#xD;
	fourierCoeff=Abs@Join[cosCoeff,sinCoeff];&#xD;
		manipulatedCosCoord=Join[&#xD;
			Take[&#xD;
				Transpose[&#xD;
			{(cosList-10)/.Cos-&amp;gt;Sin,cosList}],1],&#xD;
		Drop[Transpose[{cosList/.Cos-&amp;gt;Sin,cosList}],1]];&#xD;
	manipulatedSinCoord=Join[&#xD;
		Take[&#xD;
			Transpose[&#xD;
			{(sinList-10)/.Sin-&amp;gt;Cos,sinList}],1],&#xD;
		Drop[Transpose[{sinList/.Sin-&amp;gt;Cos,sinList}],1]];&#xD;
	manipulatedCoord=(Join[manipulatedCosCoord,manipulatedSinCoord]/.x-&amp;gt;$time);&#xD;
	&#xD;
	manipulatedCoord=(Plus@@@Table[&#xD;
								manipulatedCoord[[;;n]],&#xD;
								{n,1,Length[manipulatedCoord]}]//Prepend[{-10,0}]);&#xD;
								&#xD;
	lastYCoord={0,Take[Take[manipulatedCoord,-1]//Flatten,-1]};&#xD;
	plotCoord=(Total[cosList]+Total[sinList])/.variable-&amp;gt;(variable+$time);&#xD;
	cirCenter=Drop[manipulatedCoord,-1];&#xD;
	(*I need to find a way to extract the radii of the Circles*)&#xD;
	cirArguments=Transpose[{cirCenter,fourierCoeff}];&#xD;
	&#xD;
	lastLinetoYaxis=Prepend[Take[Take[manipulatedCoord,-1]//Flatten,-1],0];&#xD;
	&#xD;
	combinedCir={Circle[#1,#2]}&amp;amp;@@@(#1&amp;amp;/@cirArguments);&#xD;
	lineSeries= (Line[#1]&amp;amp;@Evaluate[Append[manipulatedCoord,lastLinetoYaxis]]);&#xD;
	&#xD;
	range=(2Pi)*totalRadius;&#xD;
&#xD;
	Animate[&#xD;
			Show[&#xD;
				Graphics[{Sequence@@#1,#2},Axes-&amp;gt;True],&#xD;
				Plot[#3,{variable,0,30},PlotRange-&amp;gt;Full]&#xD;
								],&#xD;
		{$time,0,-2Pi},AnimationRunning-&amp;gt;False]&amp;amp;@@Evaluate[{combinedCir,lineSeries,plotCoord}]&#xD;
&#xD;
]&#xD;
&#xD;
#### Putting it All Together&#xD;
This code was written to separate the odd and even functions and use the corresponding function to them; for even functions I used the cosine functions and for the odd functions I used sine functions. I also added a plot of the original function to show how the approximation compares. &#xD;
	&#xD;
	ClearAll[fourierCircleCookBook]&#xD;
	fourierCircleCookBook[function_,variable_Symbol,numCir_Integer]:=&#xD;
	Which[&#xD;
		PossibleZeroQ[function-(function/.variable-&amp;gt;(-variable))],&#xD;
			Row[&#xD;
				{unblendedCosCircleSmoothie[function,variable,numCir],&#xD;
				circleCosSmoothie2[function,variable,numCir],&#xD;
				Plot[function,{variable,-30,30},PlotStyle-&amp;gt;Black,Frame-&amp;gt;True,ImageSize-&amp;gt;Medium,Axes-&amp;gt;False]}&#xD;
			],&#xD;
		PossibleZeroQ[function+(function/.variable-&amp;gt;(-variable))],&#xD;
			Row[&#xD;
				{unblendedSinCircleSmoothie[function,variable,numCir],&#xD;
				circleSinSmoothie2[function,variable,numCir],&#xD;
				Plot[function,{variable,-30,30},PlotStyle-&amp;gt;Black,Frame-&amp;gt;True,ImageSize-&amp;gt;Medium,Axes-&amp;gt;False]}&#xD;
			],&#xD;
	True,&#xD;
	circleSmoothietheRest[function,variable,numCir]&#xD;
	]&#xD;
## Further Improvements&#xD;
In the future, I will create a function that identifies the frequencies itself and provides a visual step by step of the built in function. Currently we need to input a function in order to get an&#xD;
 output. In the future I want to implement a function that will take in an audio file and filter out the different frequencies and provide a visual for how it does it. &#xD;
&#xD;
&#xD;
  [1]: https://github.com/MukilanKarthikeyan/WSSProject-Visualizing-the-Fourier-Series/blob/master/Final%20Project/Final%20Submission/Fourier_parabola_unblend.gif?raw=true&#xD;
  [2]: https://github.com/MukilanKarthikeyan/WSSProject-Visualizing-the-Fourier-Series/blob/master/Final%20Project/Final%20Submission/Fourier_parabola.gif?raw=true&#xD;
  [3]: https://github.com/MukilanKarthikeyan/WSSProject-Visualizing-the-Fourier-Series&#xD;
[4]:https://github.com/MukilanKarthikeyan/WSSProject-Visualizing-the-Fourier-Series/blob/master/Final%20Project/Final%20Submission/Fourier_randomfunction_combined.gif</description>
    <dc:creator>Mukilan Karthikeyan</dc:creator>
    <dc:date>2019-07-12T02:07:12Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/148526">
    <title>Chromatic polynomials for custom graphs</title>
    <link>https://community.wolfram.com/groups/-/m/t/148526</link>
    <description>1 ) How to use the math functions over graphs  that are not in the data graph of Mathematica?
2 ) How to compute Chromatic Poynomials for a graph introduced by myself ?</description>
    <dc:creator>Reinaldo Giudici</dc:creator>
    <dc:date>2013-11-04T13:57:36Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/617724">
    <title>Understanding result for prime factorization of 25</title>
    <link>https://community.wolfram.com/groups/-/m/t/617724</link>
    <description>Input: &amp;#034;factor 25&amp;#034; (http://www.wolframalpha.com/input/?i=factor+25)&#xD;
-----------------------------------------------------------------&#xD;
**Incorrect result returned:**&#xD;
&#xD;
![Incorrect prime factorization of 25][1]&#xD;
&#xD;
We should get **5^2**&#xD;
&#xD;
&#xD;
**Using *Mathematica* we get the correct factorization**&#xD;
![Prime factorization of 25 using **Mathematica**][2]&#xD;
&#xD;
&#xD;
  [1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Captura.PNG&amp;amp;userId=410040&#xD;
  [2]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Captura2.PNG&amp;amp;userId=410040&#xD;
Why did Wolfram|Alpha return that result?</description>
    <dc:creator>RorriNator 7</dc:creator>
    <dc:date>2015-11-19T16:46:50Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/777582">
    <title>Interpolation for multi-dimensional functions</title>
    <link>https://community.wolfram.com/groups/-/m/t/777582</link>
    <description>Dear fellow forum members,&#xD;
&#xD;
Who can help me with the following problem?&#xD;
&#xD;
I have a list that looks as follows: **{ {f1,x1,y1}, {f2,x2,y2}, ...}**. I wish to express f as a function of  x and y by use of Mathematica&amp;#039;s ListInterpolation. The documentation for ListInterpolation tells me that I must use the following syntax:&#xD;
                **ListInterpolation[list,{{x1,x2,...},{y1,y2,....}}]**.&#xD;
In other words: it looks as if my data points **must** be defined on all the intersection points of a grid of perpendicular lines in the (x,y)-plane. In the data set I am working with, this is not the case (i.e. the (x,y) in my data set don&amp;#039;t form a rectangular grid.)    &#xD;
I cannot imagine that Mathematica is so restrictive. There must be a good workaround for this.&#xD;
&#xD;
Does anybody have a good idea?&#xD;
&#xD;
Thanks in advance,&#xD;
&#xD;
René Samson</description>
    <dc:creator>Rene Samson</dc:creator>
    <dc:date>2016-01-23T19:32:52Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/128136">
    <title>A replacement for IntegerDigits: computing Sloane OEIS A229024 sequence</title>
    <link>https://community.wolfram.com/groups/-/m/t/128136</link>
    <description>I am on a quest to determine the 13th term in [b][url=http://oeis.org/A229024]Sloane&amp;#039;s (OEIS) A229024[/url][/b], a sequence that I recently authored. This sequence is all about calculating [b]Total[IntegerDigits[n!][/b] for a reasonably large subset of contiguous n. For the 13th term, n is in the vicinity of 182623000, the factorial of which has more than 1.4*10^9 decimal digits. It takes some 20 minutes for Mathematica to return on my system the sum of the digits of one such n!, so it will take me many months to chart the roughly 15000 sums that I think need to be done. Unfortunately, I am finding that for a random, roughly-2% of the n that I try, Mathematica returns an erroneous result. For example, I get for [b]Total[IntegerDigits[182616009!]][/b] a value of 1600311191. I know that this sum is incorrect because it is not evenly divisible by 9. (It is also significantly smaller than the sum of digits for nearby n-factorial. It appears that [b]IntegerDigits[182616009!][/b] introduces more than a billion [i]additional[/i] trailing zeros preceding the 45653996 trailing zeros that I expect.)  I&amp;#039;ve reported the bug to Wolfram in the hope that this will be fixed in some future version, assuming of course that it is not my system that is responsible. So what procedure can I use to get a [i]correct[/i] value for [b]Total[IntegerDigits[182616009!]][/b] in the interim? I thought to use [b]DigitCount[182616009!][/b] but [b]Total[RotateRight[DigitCount[182616009!]]*Range[0, 9]][/b] results in the identical incorrect value as before.</description>
    <dc:creator>Hans Havermann</dc:creator>
    <dc:date>2013-09-23T00:52:55Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/535997">
    <title>Simple Math Problem Shows Massive Flaw In All Machine Learning Algorythims</title>
    <link>https://community.wolfram.com/groups/-/m/t/535997</link>
    <description>I am testing sequence prediction. If things happen in a specific sequence, what will the likely next step in the sequence be? Computational power should be included in machine learning algorithms but not even Google&amp;#039;s &amp;#034;Prediction API&amp;#034; can solve this simple mathematical exercise. In fact, in my naivety, I reported it as a possible bug and they emailed me:&#xD;
&#xD;
&amp;gt; As far as your example, the Prediction API will not learn that particular pattern because when trying to classify, it will choose from one of the output classes seen in the training set, so without instances of class &amp;#034;10th&amp;#034;, it will not even know that such a class exists, does that make sense?&#xD;
&#xD;
I have used two simple data sets.&#xD;
&#xD;
Categorization:&#xD;
&#xD;
    catData={&#xD;
    {&amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;},&#xD;
    {&amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;},&#xD;
    {&amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;},&#xD;
    {&amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;},&#xD;
    {&amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;},&#xD;
    {&amp;#034;6th&amp;#034;, &amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;},&#xD;
    {&amp;#034;7th&amp;#034;, &amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;},&#xD;
    {&amp;#034;8th&amp;#034;, &amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;},&#xD;
    {&amp;#034;9th&amp;#034;, &amp;#034;10th&amp;#034;, &amp;#034;1st&amp;#034;, &amp;#034;2nd&amp;#034;, &amp;#034;3rd&amp;#034;, &amp;#034;4th&amp;#034;, &amp;#034;5th&amp;#034;, &amp;#034;6th&amp;#034;}&#xD;
    }&#xD;
&#xD;
    c=Classify[catData-&amp;gt;1];&#xD;
&#xD;
Classification request:&#xD;
&#xD;
    c[{&amp;#034;1st&amp;#034;,&amp;#034;2nd&amp;#034;,&amp;#034;3rd&amp;#034;,&amp;#034;4th&amp;#034;,&amp;#034;5th&amp;#034;,&amp;#034;6th&amp;#034;,&amp;#034;7th&amp;#034;}]&#xD;
&#xD;
I have purposely left out a sequence pattern starting with &amp;#034;10th&amp;#034; to see if the model can predict it given the right data sample. &#xD;
&#xD;
Expected Result:&#xD;
&#xD;
    Output=&amp;#034;10th&amp;#034;&#xD;
&#xD;
Unexpected Result:&#xD;
&#xD;
    Output=&amp;#034;1st&amp;#034;&#xD;
&#xD;
I also attempted this with a regression model.&#xD;
&#xD;
Regression:&#xD;
&#xD;
    predictData={&#xD;
    {1,2,3,4,5,6,7,8},&#xD;
    {2,3,4,5,6,7,8,9},&#xD;
    {3,4,5,6,7,8,9,10},&#xD;
    {4,5,6,7,8,9,10,1},&#xD;
    {5,6,7,8,9,10,1,2},&#xD;
    {6,7,8,9,10,1,2,3},&#xD;
    {7,8,9,10,1,2,3,4},&#xD;
    {8,9,10,1,2,3,4,5},&#xD;
    {9,10,1,2,3,4,5,6}&#xD;
    }&#xD;
&#xD;
    p=Predict[predictData-&amp;gt;1];&#xD;
&#xD;
Prediction request:&#xD;
&#xD;
    p[{1,2,3,4,5,6,7}]&#xD;
&#xD;
Expected Result:&#xD;
&#xD;
    Output=10&#xD;
&#xD;
Unexpected Result:&#xD;
&#xD;
    Output=6&#xD;
&#xD;
This represents a real world scenario where I am trying to pick the best option to present to a user based on their past behavior. So the next item is unknown because no user has chosen it before and the classification label hasn&amp;#039;t been added to the training yet because it&amp;#039;s crowd generated dynamically. However, we don&amp;#039;t want to just give them any random option. We want to give them something highly relevant during the first interaction with the system.&#xD;
&#xD;
The whole premise of &amp;#034;prediction&amp;#034; seems to imply the ability to predict a categorical label based on other example labels. In this data set, it should be easy to identify the pattern and auto generate 10th as a category label.&#xD;
&#xD;
In this scenario, mathematics is all that is needed to determine the next item in a sequence. I guess if we have tons of sequences not all in perfect order but close, machine learning algorithms becomes much more useful.&#xD;
&#xD;
If there is already a known solution to this issue, that would be amazing to know. Forgive me for not being trained/educated enough to question why this isn&amp;#039;t already built into all machine learning algorithms already.&#xD;
&#xD;
I suppose someone could use transpose to create a model out of the columns in the dataset in addition to the rows. However, in my view, anything related to permutations, shifting, changing, organizing, reordering, etc. of the data to find better predictions should be natively built into the algorithms. Even auto generating new columns/features based on patterns, sequences, math equations, etc. that can be derived from the existing data should be automated. None of these things require human input and are mathematical in nature.&#xD;
&#xD;
I bring this to the Wolfram community because the WL is uniquely positioned to tap into knowledge and computation in order to create drastically superior machine learning functions. If everything can be symbolic, everything can be computed.</description>
    <dc:creator>David Johnston</dc:creator>
    <dc:date>2015-07-25T16:47:28Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/612319">
    <title>Brunnian 5 links</title>
    <link>https://community.wolfram.com/groups/-/m/t/612319</link>
    <description>Hello,&#xD;
Can anyone tell me how to get Mathematica to draw a Brunnian 5 links.&#xD;
Many thanks.</description>
    <dc:creator>ali cherad</dc:creator>
    <dc:date>2015-11-13T10:12:00Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/1154374">
    <title>Self-generating Oldenburger-Kolakoski sequence</title>
    <link>https://community.wolfram.com/groups/-/m/t/1154374</link>
    <description>The [Kolakoski Sequence](http://mathworld.wolfram.com/KolakoskiSequence.html) was recently in the news.  It starts out as&#xD;
&#xD;
&amp;gt; 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 1 1 2 1 2 2 1 1 2 1 1 2 1 2 2 1 2 2 1 1 2 1 2 2 1 2 1 1 2 1 1 2 2 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 1 2 2 1 2 1 1 2 2 1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 2 1 2 1 1 2 1 2 2 1 2 2 1 1 2 1 1 2 1 2 . . .&#xD;
&#xD;
    n = 10;  ko = Prepend[Nest[Flatten[Partition[#, 2] /. &#xD;
    {{2, 2} -&amp;gt; {2, 2, 1, 1}, {2, 1} -&amp;gt; {2, 2, 1}, {1, 2} -&amp;gt; {2, 1, 1}, {1, 1} -&amp;gt; {2, 1}}] &amp;amp;, {2, 2}, n], 1];  &#xD;
&#xD;
Try doing  &#xD;
&#xD;
    Length/@Split[ko]&#xD;
&#xD;
on that, and you get the same sequence. It is self-descriptive.  I bumped the code up to n=32 to get 1058436 terms.  What is the behavior of 1 and 2 over that range?  &#xD;
&#xD;
     ListPlot[FoldList[Plus, 0, 2 (ko - 3/2)], Joined -&amp;gt; True, AspectRatio -&amp;gt; 1/7]    &#xD;
&#xD;
![Kolakowski sequence][1]&#xD;
&#xD;
Seems pretty chaotic.&#xD;
&#xD;
&#xD;
  [1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=kolakowski.jpg&amp;amp;userId=21530</description>
    <dc:creator>Ed Pegg</dc:creator>
    <dc:date>2017-07-27T22:13:10Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/1620017">
    <title>Generate sound from plot curves?</title>
    <link>https://community.wolfram.com/groups/-/m/t/1620017</link>
    <description>Hello everyone, Ive just joined the community. On March 5th I&amp;#039;m giving a Meetup group presentation titled &amp;#034;The Greatest Unsolved Problem in Mathematics&amp;#034;, which is of course the Riemann hypothesis. I will include many classical images of races between the prime &amp;#034;staircase&amp;#034; and various functions. I also want to include entertaining sounds, so I made this example of how zeta waves sum to prime spikes.&#xD;
&#xD;
    zwave[n_,x_]:=Cos[Im[ZetaZero[n]] Log[x]];&#xD;
    Plot[zwave[1,x],{x,1,10}]&#xD;
    Plot[zwave[2,x],{x,1,10}]&#xD;
    Plot[Sum[zwave[n,x],{n,1,60}],{x,2,12}]&#xD;
&#xD;
However, I cant figure out how to turn these plots into sound in a pleasant Hz range. I tried increasing the frequency by using a multiplier inside, but I keep getting something inaudible.&#xD;
Can someone help me create sound out of these plots, and explain what a general strategy might be?&#xD;
&#xD;
P.S. Any contributions of great sounds generated by primes and zeta zeroes would be welcome, and Ill attribute you in my talk.</description>
    <dc:creator>Greg Keogh</dc:creator>
    <dc:date>2019-02-25T07:01:37Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/442573">
    <title>How create function for Fibonacci series?</title>
    <link>https://community.wolfram.com/groups/-/m/t/442573</link>
    <description>I know Mathematica has the default function for Fibonacci Serie but I need do a function that calculate any number that I introduce, for example:&#xD;
&#xD;
n=2&#xD;
fib=[n_]...&#xD;
So the result for the Fibonacci Serie it&amp;#039;s 1 (1,1,2,3,5,8...)&#xD;
&#xD;
Please anyone help me to generate this function and please explain why and the stepwise</description>
    <dc:creator>Camilo Pacheco</dc:creator>
    <dc:date>2015-02-15T20:15:49Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/571483">
    <title>How do I get all possible paths in terms of edges, and not vertices?</title>
    <link>https://community.wolfram.com/groups/-/m/t/571483</link>
    <description>Hi everyone,&#xD;
&#xD;
Suppose I have an undirected graph &#xD;
&#xD;
    G = Graph[{1 &amp;lt;-&amp;gt; 2, 2 &amp;lt;-&amp;gt; 3, 2 &amp;lt;-&amp;gt; 4, 3 &amp;lt;-&amp;gt; 4}, EdgeLabels -&amp;gt; {1 &amp;lt;-&amp;gt; 2 -&amp;gt; A, 2 &amp;lt;-&amp;gt; 3 -&amp;gt; B, 2 &amp;lt;-&amp;gt; 4 -&amp;gt; C, &#xD;
            3 &amp;lt;-&amp;gt; 4 -&amp;gt; D}]&#xD;
&#xD;
![enter image description here][1]&#xD;
&#xD;
&#xD;
  [1]: /c/portal/getImageAttachment?filename=Graph4.jpg&amp;amp;userId=389289&#xD;
&#xD;
I used `FindPath[G, 1, 4, Infinity, All]` and got the result as &#xD;
&#xD;
&amp;gt; {{1, 2, 4}, {1, 2, 3, 4}}&#xD;
&#xD;
Although this result is true, I want this result to display possible paths in terms of edges, and not vertices. For above example, I want the result to be &#xD;
&#xD;
&amp;gt; {{A, C}, {A, B, D}}&#xD;
&#xD;
Is there any way to do this? Actually, I have a large graph with **107** possible paths from source node to destination node, and I want to identify those paths with respect to edges. Please help. Thank you.</description>
    <dc:creator>Azhar Uddin Mohammed</dc:creator>
    <dc:date>2015-09-28T03:48:38Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/2397426">
    <title>Avoiding procedural programming</title>
    <link>https://community.wolfram.com/groups/-/m/t/2397426</link>
    <description>I am very new to Mathematica and have to rethink my &amp;#039;procedural&amp;#039; ways of programming. That is not always easy. I am making progress, but here I have no clue, besides going down the &amp;#039;repeat and if&amp;#039; rabbit hole.&#xD;
&#xD;
I create a list of random integers.&#xD;
I have a Dynamic Slider to adjust delta (between 0 and 20).&#xD;
Let&amp;#039;s say the Slider is adjusted to value 10.&#xD;
&#xD;
Now I want all the integers in the list that are 10 or less apart, to become the same integer.&#xD;
&#xD;
    E.g. myIntegers = {11,28,66,36,94,8,44}&#xD;
&#xD;
After the &amp;#039;treatment&amp;#039; the list should be :&#xD;
{11,28,66,**28**,94,**11**,44}    The 36 is within 10 from 28  and the 8 is also within 10 from 11, so in both cases the integer within the delta range gets to be the value of the first (36 becomes 28). &#xD;
&#xD;
How could I go about this problem in a functional or symbolic way?</description>
    <dc:creator>B. Cornas</dc:creator>
    <dc:date>2021-10-31T16:38:00Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/1395404">
    <title>Find the &amp;#034;nth&amp;#034; of a large PrimeNumber?</title>
    <link>https://community.wolfram.com/groups/-/m/t/1395404</link>
    <description>Hi Guys! I hope all of you are fine :) Maybe someone can tell me here how can I find with Wolfram Alpha or Mathematica the nth&amp;#039;s of larger primes? I used &amp;#034;PrimePi&amp;#034;, but &amp;#034;PrimePi&amp;#034; works not with large primes (primes like these 1921773217311523519374373 do not work...too large...). Is there a criterion, method and or a script with which I can find the nth&amp;#039;s of larger primes? &#xD;
&#xD;
I have also used the &amp;#034;nthprime&amp;#034; function, but i think this is not what i need, but when there is a method with the nth prime function to find the &amp;#034;th&amp;#039;s&amp;#034; of larger primes, can someone here show me, how it works? To better understanding what i mean, here an example:&#xD;
&#xD;
 - 2 is the 1(&amp;lt;-i need this number).Primenumber&#xD;
 - 3 is the 2(&amp;lt;-i need this number).Primenumber&#xD;
 - 5 is the 3(&amp;lt;-i need this number).Primenumber&#xD;
 - 7 is the 4(&amp;lt;-i need this number).Primenumber&#xD;
&#xD;
and so on...another example: &#xD;
&#xD;
19 is the 8th (!) Prime, 23 is the 9th (!) Prime, 29 is the 10th (!) Prime... now i need a function to find which prime is 1921773217311523519374373? I need a function to get that out, i hope anybody here has an idea how can i find with WolframAlpha or Mathematica which/what (!) prime is 1921773217311523519374373.&#xD;
 &#xD;
I hope anyone can help me here. Kind regards and best wishes.</description>
    <dc:creator>Nural I.</dc:creator>
    <dc:date>2018-07-31T18:14:09Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/356717">
    <title>Any efficient VERTEX ENUMERATION packages available?</title>
    <link>https://community.wolfram.com/groups/-/m/t/356717</link>
    <description>Sometimes I need to do **vertex enumerations** on Mathematica. There used to be a `VertexEnum.m` package, even though it is very old and lacks of efficiency.  However, after upgrading to *Mathematica 10*, this package doesn&amp;#039;t work any more. Are there an latest `VertexEnum.m` package working with the latest version of *Mathematica* or any other packages doing the vertex enumeration job?&#xD;
&#xD;
**Update:**&#xD;
&#xD;
I have fixed the bug in package `VertexEnum.m` and now it works in  *Mathematica 10*. But the efficiency of this package drives me crazy. I looked into the package and found that package `VertexEnum.m` have a much more efficient `C` implementation named `cddlib`. It has a prebuilt interface to *Mathematica* called `cddmathlink` or `cddmathlink2`. However, it was compiled about 10 years ago, and dose not work on the lasted *OS X 10.9*. So my question is who has latest version of `cddmathlink` or `cddmathlink2` which works in latest *Mathematica* or who can recompile the &#xD;
interface to *Mathematica* for me on *OS X 10.9*. (I have been trying to recompile it by myself for almost a month, but apparently I&amp;#039;m not that material at all.) For more information about `cddlib`, you may find its homepage [here](http://www.inf.ethz.ch/personal/fukudak/cdd_home/).</description>
    <dc:creator>Han Xiao</dc:creator>
    <dc:date>2014-09-27T05:22:08Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/481830">
    <title>need help to price a european option using finite difference method</title>
    <link>https://community.wolfram.com/groups/-/m/t/481830</link>
    <description>I am writing a function to price European option using backward induction finite difference method. The function is expected to price a European option taking Stock (stock_), age (time_), volatility (vol_), interest rate (int_), contractual expiry (expn_), type of payoff (payoff_),Strike ( strike_), number of asset steps used for evaluation option (nas_). I am expecting function to return price of the option based stock price and age (if option is bought today age is zero). I need help as I am only few weeks into mathematica programming so might be making basic mistakes. My code is as attached. Can anybody opine where I am going wrong.&#xD;
&#xD;
Regards</description>
    <dc:creator>Kausik Datta</dc:creator>
    <dc:date>2015-04-19T15:10:21Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/919714">
    <title>Illustration of fourier series for prime number counting functions</title>
    <link>https://community.wolfram.com/groups/-/m/t/919714</link>
    <description>If you&amp;#039;re interested in prime number theory and the Riemann hypothesis, I&amp;#039;m guessing you&amp;#039;ll probably be interested in the attached document in which I illustrate Fourier series for prime number counting functions including Riemann&amp;#039;s prime number counting function and Chebyshev&amp;#039;s prime number counting function. I also included a couple of plots from the document below which I believe best illustrate the essence of the information contained within the document.&#xD;
&#xD;
Fourier Series for Riemann&amp;#039;s Prime Counting Function:&#xD;
&#xD;
![Fourier Series for Riemann&amp;#039;s Prime Counting Function][1]&#xD;
&#xD;
Fourier Series for Chebyshev&amp;#039;s Prime Counting Function:&#xD;
&#xD;
![Fourier Series for Chebyshev&amp;#039;s Prime Counting Function][2]&#xD;
&#xD;
I added the Raspberry Pi group to this post because I created the attached document and performed all of the evaluations contained within the document using the Mathematica version which comes bundled with the Raspbian operating system. A complete evaluation of the attached document takes approximately one hour with Mathematica running on a Raspberry Pi 3 Model B.&#xD;
&#xD;
  [1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=dOfjFourierSeries.jpeg&amp;amp;userId=611298&#xD;
  [2]: http://community.wolfram.com//c/portal/getImageAttachment?filename=dOflFourierSeries.jpeg&amp;amp;userId=611298</description>
    <dc:creator>Steven Clark</dc:creator>
    <dc:date>2016-09-06T04:29:20Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/511713">
    <title>Labelling Special Edges of a Hasse Diagram</title>
    <link>https://community.wolfram.com/groups/-/m/t/511713</link>
    <description>Hi all,&#xD;
&#xD;
I am looking at Hasse Diagrams on the power set of {1, 2, ..., n} (trying to augment this code: http://demonstrations.wolfram.com/HasseDiagramOfPowerSets/ ). I have a subset of the power set, C, and I want to track which elements in the Hasse diagram are connected to each element of C. &#xD;
&#xD;
Ideally, I would like to edit the EdgeColor section of the code to EdgeStyle with a simple pattern, essentially saying &amp;#034;If any node X is connected to any node Y in C, make the line between X and Y be dashed (or another color, etc).&amp;#034; I&amp;#039;ve experimented using MemberQ PatternTests, but so far nothing has come to fruition. This is one of my first times using Mathematica; any help is greatly appreciated!&#xD;
&#xD;
Thanks</description>
    <dc:creator>Zev Woodstock</dc:creator>
    <dc:date>2015-06-10T02:37:40Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/972050">
    <title>Solve for best teams?</title>
    <link>https://community.wolfram.com/groups/-/m/t/972050</link>
    <description>Hello &#xD;
&#xD;
I have an algorithmus which I like to undestand and solve with Mathematica. It is about cooking. You need at least 18 people for it. Each group (2 people) are cooking either appetizer, main dish or dessert at their place. 2 other groups are visiting them. For the other two courses the group is the invited to another hosts&amp;#039; homes. Each location you meet new people (2 new groups). That means at the end you met 6 groups (12 people). Its a lot of fun. I want to organize this for my birthday party. &#xD;
&#xD;
&#xD;
&#xD;
&#xD;
Goal is it, to maximise the happinies factor. Only this way you can make sure, that in each different location you will see new people that you will not meet in the 2 other locations. &#xD;
&#xD;
![enter image description here][2]&#xD;
&#xD;
&#xD;
There are some constrains which we have to consider: &#xD;
&#xD;
&#xD;
&#xD;
I like to know how to handle this problem with Mathematica. Where do I start? Which equation do I have to solve here? I don&amp;#039;t see what I realy need to do...&#xD;
&#xD;
As I sad, you need  minimum 18 people. That means we have 9 teams and 3 major groups. Ok, but I don&amp;#039;t know what to do next and how I implement this in Mathematica. I guess it should not be so difficult but I need some help from you!</description>
    <dc:creator>Peter Parker</dc:creator>
    <dc:date>2016-11-30T23:26:19Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/906971">
    <title>Set-builder notation in Wolfram Language?</title>
    <link>https://community.wolfram.com/groups/-/m/t/906971</link>
    <description>Hello, big fan of Wolfram here, but I&amp;#039;m new. I&amp;#039;m using the Wolfram Development Platform.&#xD;
I wanted to inquire about the use of set-builder notation in the wolfram language.&#xD;
&#xD;
I&amp;#039;ve been over the documentation but I&amp;#039;m having some trouble.&#xD;
&#xD;
How would I enter the following simple statement in the Wolfram language?&#xD;
&#xD;
E = { 2n : ![enter image description here][1] }&#xD;
&#xD;
Additionally, how would I have wolfram return a random member of this set for n&amp;lt;1000?&#xD;
&#xD;
Thank you.&#xD;
&#xD;
&#xD;
&#xD;
&#xD;
  [1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Inline6.gif&amp;amp;userId=906955</description>
    <dc:creator>B M</dc:creator>
    <dc:date>2016-08-17T17:54:47Z</dc:date>
  </item>
  <item rdf:about="https://community.wolfram.com/groups/-/m/t/917888">
    <title>Solve a system of recurrence relations?</title>
    <link>https://community.wolfram.com/groups/-/m/t/917888</link>
    <description>Hi all!&#xD;
&#xD;
I&amp;#039;m new to the Wolfram Forum community and it is a pleasure to be here. &#xD;
&#xD;
I have a quick question for those who have expertise in the use of Mathematica....&#xD;
&#xD;
Is Mathematica able to solve the following system of recurrence relations? I&amp;#039;m looking for a &amp;#034;closed-form&amp;#034; formula for w(2n+1).&#xD;
&#xD;
-------------------------------------------------&#xD;
For n greater than or equal to 3,&#xD;
&#xD;
w(2n+1) = a(n+1),&#xD;
a(n) = 3*a(n-1) + a(n-2) - a(n-3),&#xD;
&#xD;
a(0) = 1, a(1) = 2, a(2) = 7, w(1) = 2, w(3) = 7, and w(5) = 22. &#xD;
&#xD;
&#xD;
Any help is greatly appreciated!&#xD;
&#xD;
Sincerely,&#xD;
Richard M. Low &#xD;
&#xD;
richard.low@sjsu.edu</description>
    <dc:creator>Richard Low</dc:creator>
    <dc:date>2016-09-02T22:27:52Z</dc:date>
  </item>
</rdf:RDF>

