Question: Write two functions, both_logs and either_logs. Both should take three arguments: x: a numeric vector of length at least one. a: a numeric vector
Write two functions, both_logs and either_logs. Both should take three arguments: x: a numeric vector of length at least one. a: a numeric vector of length one, where a > 1. b: a numeric vector of length one, where b > 1. a and b may be vectors containing the same value. The both logs function should return a numeric vector containing elements of x for which the following is true (both are integers): log, EZ and log, Z The either_logs function should return a numeric vector containing elements of x for which the following is true (either is integer): loga Z or log, Z
Step by Step Solution
There are 3 Steps involved in it
Here is the ... View full answer
Get step-by-step solutions from verified subject matter experts
