Loading app.

Please, Wait.

'
}
}
]
});
pp.show();
}
function createAboutWindow()
{
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 505,
height : 300,
title: 'Mathstools',
id: 'panelHelp',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto; width: 480px; ',
items: [
{
xtype: 'box',
id: 'helpContainer',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: 'Mathstools About us'
}
}
]
, listeners: {
'render': function(panel) {
var url = '/index.php/section/crud?crudid=67';
$('#helpContainer').load(url, null ,
function (responseText, textStatus, XMLHttpRequest)
{
});
}
}
});
pp.show();
}
function createHelpWindow(idParent, ttt, uuu, isHelp)
{
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 890,
height : 550,
title: ttt,
id: 'panelHelp',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto;',
items: [
{
xtype: 'box',
id: 'helpContainer1',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: '

'
}
},
{
xtype: 'box',
id: 'helpContainer',
autoEl: {
tag: 'div',
style: 'top: 100px; border: 2px solid #000000; border-radius: 15px 15px 15px 15px; position: relative !important; text-align: center; font-weight: bold; padding-right: 10px;',
styleCls: 'definitionDiv',
styleClass: 'definitionDiv',
html: ttt
}
}
]
, listeners: {
'render': function(panel) {
var url =uuu;
$('#helpContainer').load(url, null ,
function (responseText, textStatus, XMLHttpRequest)
{
/*alert('statuys' + textStatus);*/
});
}
}
});
pp.show();
}
function addFeedbackPanel(panel, app)
{
var pp = Ext.create('Ext.panel.Panel',
{
width: 485,
title: 'Send us your Feedback',
id: 'panelFeedback',
bodyStyle: 'padding: 8px;',
x: 200,
y: 0,
items: [
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: center; color: darkRed; font-weight: bold;',
html: 'Yours feedbacks are wellcome'
}
},
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: left; padding: 5px; padding-top: 10px; padding-bottom: 10px; line-height: 17px',
html: "Did you like our applications?Have any suggestions?Got some text that you would like post it on www.mathstools.com? "
}
},
{
xtype: 'box',
autoEl: {
tag: 'div',
style: 'text-align: left; padding: 5px; padding-top: 10px; padding-bottom: 10px; line-height: 17px',
html: 'Still not registered?

Register here'
}
},
{
xtype: 'textfield',
width: 570,
heigth: 190,
fieldLabel: 'Name',
labelWidth: 100,
value: '',
x: 5,
y: 10,
inputId: 'name'
},
{
xtype: 'splitter' // A splitter between the two child items
},
{
xtype: 'textfield',
width: 570,
heigth: 190,
fieldLabel: 'Email',
labelWidth: 100,
value: '',
x: 5,
y: -2,
inputId: 'email'
},
{
xtype: 'splitter' // A splitter between the two child items
},
{
xtype: 'textarea',
heigth: 150,
fieldLabel: 'Your Text here',
labelWidth: 100,
width: 570,
rows: 7,
value: '',
x: 5,
y: -2,
inputId: 'text'
},
{
xtype: 'button',
text: 'Clear Form',
style: {'float': 'left', 'margin-left': '20px;'},
handler: function(){
cleanForm();
}
},
{
xtype: 'button',
styleHtmlCls: 'button',
text: 'Send',
style: {'float': 'right', 'margin-right': '20px;'},
handler: function(){
sendFeedBack(app);
}
}
/*
,
{
xtype: 'button',
styleHtmlCls: 'button',
text: 'Register here',
style: {'float': 'right', 'margin-right': '20px;'},
handler: function(){
goTo('/section/forum/L2ZvcnVtL3VjcC5waHAXXXbW9kZT1yZWdpc3Rlcg%3D%3D');
}
}
*/
]
});
panel.add(pp);
}
function generateSolutionImg(result, title)
{
$('#panelWidget').remove();
var pp = Ext.create('Ext.Window',
{
layout : 'absolute',
width : 505,
height : 300,
title: title,
id: 'panelWidget',
animCollapse : true,
collapsible : true,
closable : true,
hidden: false,
renderTo: Ext.getBody(),
bodyStyle: 'padding: 8px; overflow: auto;',
items: [
{
xtype: 'box',
style: 'text-align: center;',
autoEl: {
tag: 'div',
style: 'display: block; float: none; text-align: center ! important; width: 100%; clear: both;',
html: '

'
}
},
{
xtype: 'box',
id: 'widgetHelpContainer',
autoEl: {
tag: 'div',
style: 'text-align: left; width: 100%; float: none; clear: both; margin-top: 30px;',
html: result
}
}
]
});
pp.show();
}
//-->

#
Fourier Series Calculator

Fourier Series Calculator is an online application on the Fourier series to calculate the Fourier coefficients of one real variable functions. Also can be done the graphical representation of the function and its Fourier series with the number of coefficients desired

### Inputs

Fourier Series Calculator allows you to enter picewise-functions defined up to 5 pieces, enter the following

**0)** Select the number of coefficients to calculate, in the combo box labeled "Select Coefs.Number".

**1)** Enter the lower integration limit (full range) in the field labeled "Limit Inf.".

**2)** Enter the upper integration limit (the total range) in the field labeled "Limit Sup.".

**3)** Enter the function of the variable x. Some examples are

if f(x) = e2x -> enter e^(2*x)

if f(x,y) = sin e2x -> enter sin(e^(2*x))

**4)** If the function is defined piecewise, enter the upper limit of the first interval in the field labeled "Sub-interval 1" and enter the function from that
point to the next interval if more or "Limit inf." value entered in step 2)

**5)**If there are more pieces enter the upper end of the next subinterval in the field labeled "Sub-interval 2", and enter the function from that
point to the next interval if more or "Limit inf." value entered in step 2)

**6)**If more pieces repeat the previous step in the following fields, Fourier Series Calculator lets you enter up to 4 subintervals.

### Fourier Series Calculator Outputs

To calculate the coefficients of the Fourier series click "Fourier Series": After a few seconds, a window opens showing the An and An Fourier series coefficients for the function introduced, also will show some statistics of the calculations.

Click on "Show Graph" if you want to see the graphic representation of the function and the previously calculated series

Push in "df(x)/dx" To obtain the analytical derivative of the function

Push inn "Integral[a, b]" To obtain the primitive of the function in the interval introduced
### Final Comments

Fourier Series Calculator has, in the precision limitation in calculations up to 16 decimal digits. Note that the precision in the calculation of each coefficient depends on size of interval entered, for an interval of length 2π the error is roughly o(10-7).

At same time, the maximum processing time is 20 seconds, after that time if no solution is found, Fourier Series Calculator will stop the execution, for higher execution times please use the applet on this website.

Fourier Series Calculator does not require installation of any kind, just a browser with javascript support.

#
Was useful? want add anything?

Post here
### Post from other users

### Admin:

2016-08-04 14:36:39

Hi Lawrence!.

Thanks for your comment. In fact, the a0 coefficient appears divided by 2 in calculator results.

For example, you can calculate the coefficients for function:

f(x) = -x ,if -pi<x<0

f(x) = x ,if 0<x<pi

(Please ignore the great or equaly signs and consider all interval [-pi, pi] covered).

At this case coefficient a0=PI, but application says that a0 value is PI/2.

### Laurence Le Vay:

2016-08-03 22:31:39

Hi There, I am studying my Mechanical Engineering degree, and studying Fourier Series.

I am constantly getting different values for a0 compared from working out the formula: a0 = 1/Pi Integral Between 2Pi and 0 for the function.

For instance I am looking at the wave:

f(t) = t , if 0<t<Pi

f(t) = 2Pi-t , if Pi<t<2Pi

My workings out show a0 should be 2*Pi.

Your calculator shows a0 is 0.5*Pi
I agree with the values for an and bn, and the graphic looks correct.

I just don't understand the discrepency for a0!

Hope you can help!

Many thanks

Laurence :)

PS Great calcuator, thank you for your work

### Mathstools Administrator:

2012-11-18 23:13:40

Hi, Jhon

OK, this change would be useful. Please give us some days to make it.

### John:

2012-11-18 17:17:42

Very useful, thanks. Would be nice if it was possible to view intercepts and y values at certain values at specific values of x.
Post here