myf loor using only simple expressions write an r function n

my_f loor _using only simple expressions, write an \'r\' function, named \'my_floor\', that accepts a floating-point number x\' and returns the greatest integer number that is less than or equal to the floating-point number. (The returned value does not have to be integer type.)_ _You are allowed to use the base arithmetic operators \' + , -, *, ^\' comparison operators (see \'help(comparison)\'), and control operators (see \'help(control)\'). Do not use \'floor ()\', \'roundO\', \'as. integer ()\', or even \':\' or the \'%%\' modulo operator, or any other functions._ _ These restrictions on usable functions will limit you to a fairly crude method of floor._ {r} my_floor

Solution

The R-code required is shown below:

 my_f loor _using only simple expressions, write an \'r\' function, named \'my_floor\', that accepts a floating-point number x\' and returns the greatest intege

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site