Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Equation : -0.87 sin (4x) - 0.56 log (4x) + 1.32 ln (5x)
Range of x : 8<= x <18
Step of x : 0.100

1. Generate value of f(x)?
2. Convert to rad?
3. Perform magnitude scaling on f(x) such that the scaling ranges a and b are given by user, where π‘Ž<𝑏 and π‘Ž>0. The scaled output π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ can be found from: π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘=[(bβˆ’a)(𝑓(π‘₯)βˆ’min(𝑓(π‘₯)))]/[max(𝑓(π‘₯))βˆ’min⁑(𝑓(π‘₯))+π‘Ž]
4. Find standard deviation of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ for 5 evenly divided quantiles of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ and find the frequency of occurrence within each quantile.
3. Find variances of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ for 5 evenly divided quantiles of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ and find the frequency of occurrence within each quantile.
4. Remove values of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘ which is less than P, where P will be entered by user and π‘Žβ‰€π‘ƒβ‰€π‘. Then find the means of π‘“π‘ π‘π‘Žπ‘™π‘’π‘‘β‘for each 5 evenly divided quantiles of the new data

What I have tried:

I dont know to conert it to rad and fx. then I dont quite understand what is the fscaled
Posted
Updated 5-Dec-16 12:11pm

This sounds suspiciously like homework. Not going to give you an answer because homework is supposed to help you learn. I will point you to the <cmath> (math.h)[^] library because it has many of the functions you need. Figuring out how to use it is up to you though :)
 
Share this answer
 
The equation is f(x). f(x) = -0.87 sin(4x) - 0.56 log(4x) + 1.32 ln(5x);

I have no idea what convert to rad means. Convert what?

I'll leave the rest up to you.
 
Share this answer
 
Comments
Jon McKee 6-Dec-16 18:02pm    
I'm guessing since it involves trig it's a conversion from degrees to radians.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900