Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program in C. should be simple, thanks! please copy paste the code here, no photos as it would be hard. thanks! CS 153 Program 2-

image text in transcribed

program in C. should be simple, thanks!

please copy paste the code here, no photos as it would be hard. thanks!

CS 153 Program 2- Rayleigh Distribution 1. Write a program that computes the Rayleigh function. (see the wiki artide http://en.wikipedia.org/wikiVRayleigh distribution) Write a pure function double rayleigh x, signa) that computes this Write the function assuming that sigma and x are non-zero. Ensuring that this is so should be done in maino. f(0) = 20 maino asks the user for a for the distribution. If is zero write out an error message and exit. In this formula, the exponent of e is the fraction The program then writes out a table that gives the value of the function using that a for values of x from zero to a top limit in increments of delta. The program asks the user for o, limit, and delta just once. Then it writes out the table. Of course you will use double precision variables. Use the exponential function exp(from the standard math library. Use to compute the square. Do not use powi). You may have to put detine UR MNTRACEPTNER nelude math. at the top of your source file. The order of preprocessor commands matters, so make sure that define comes first. C:\>. l .exe Enter sis 2.0 Enter delta --> 2 Enter upperlinit --> 10 f(x) 0.000 0.000000 0.200 0.049751 0.400 0.098020 0.6000.143400 0.00 0.184623 1.000 0.220624 1.200 0.250581 1.400 0.293947 Use ANSI-C syntax. Compile and run using the occ environment. Do not mix tabs and spaces in the source file. Do not use break or continue. Debug thoroughly. Tum in a complete source file using Blackboard

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions