Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 22nd, 2008, 11:16 PM
dmalwcc89 dmalwcc89 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 1 dmalwcc89 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 32 sec
Reputation Power: 0
PLEASE HELP...I have to write a program which calculates the integral

Write a program which calculates the integral of the function

f(x)=g(x)/(2*m)! , where g(x)=A*sin^m(x)

on the interval from a to b (a<b). In the main program, scanf a
non-negative integer value of m and double values of A, a, and b.
Call the function Integral() to evaluate the integral.

Your main program should be followed by four functions:

double Integral(int m, double A, double a, double b)

double funcf(double x, int m, double A) to evaluate f(x)

double funcg(double x, int m, double A) to evaluate g(x)

double m2fact(int m) to evaluate (2*m)!


When writing the function Intgral(), use the program w5-10.c
or the program from part B of your hw5, appropriately modified
to integrate an arbitrary function f(x) from a to b (letting the
program ask you for n_trap only once). Within the Integral() function
call another function funcf() to specify f(x). Within the function
funcf(), to evaluate (2*m)! call the function m2fact(), and to
to evaluate g(x) call the function funcg().

.................................................. ..............

Your output should look like this:

a.out

Enter the non-negative integer m: 3

Enter the coefficient A in g(x): 150.

Enter the bounds for the integration interval, a < b : -1.5 3.2

Integrate f(x) on [a,b]
Enter the number of trapezoids: 1000

The value of the integral is 0.153601 .

I HAVE TROUBLE WITH THE FACTORIALS ISSUES AND I'M NOT EXACTLY SURE WHERE TO START ON THIS THING.

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > PLEASE HELP...I have to write a program which calculates the integral


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway