Solved


Even Logic. Instant Results
Write a MATLAB function isEven(n) that takes an integer n as input and returns true if the number is even, and false if it is od...

3 days ago

Solved


Given a Matrix add a frame of 0's to it
for x as the input = [ 8 7 9 8 2 4 3 2 6 7 5 3] then output y sould be = out=[0 0 0 0 0 ...

3 days ago

Solved


Solve an equation involving primes and fractions
Write a function to find pairs of primes and satisfying the equation where is an integer. The function should take a numbe...

3 days ago

Solved


Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

3 days ago

Solved


Compute a sum of Ramanujan
Srinivasa Ramanujan defined the following function: Write a function to compute for various values of . See also Cody Proble...

3 days ago

Solved


Compute a sum
Write a function to compute the following sum Although a solution is available for general values of the coefficients, the co...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 8
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 7
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 6
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 5
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 4
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 3
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 2
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud on an equilateral triangle 1
The input is the iteration parameter H. The output is a point cloud W involving N points. W is N uniformly distributed points ...

3 days ago

Solved


Generate a point cloud named `Incremental Lattice Design`
The input is the number of dimensions M and the parameter H. The output is a point cloud W involving N points. W is N uniforml...

3 days ago

Solved


Generate a point cloud named `Simplex-Lattice Design`
The input is the number of dimensions M and the parameter H. The output is a point cloud W involving N points. W is N uniforml...

3 days ago

Solved


The Five Infection (Boss Level)
Given a 3x3 matrix A, replace: every value that is equal to five every value that is directly adjacent to a five with zero in...

3 days ago

Solved


Fives Begone
Given any sentence as an input value 'sentence', turn all fives into the letter X and return the improved sentence. Also, turn a...

3 days ago

Solved


Broken Clock
Create a function that outputs t, an inputted matrix time x, in hours and minutes (hr:min) unless the time contains a five. In t...

3 days ago

Solved


No Fives Permitted
Create a function that gives users an custom error message if the matrix A contains a five. The error message should say "No Fiv...

3 days ago

Solved


A Fiveless Factorial
Given a positive integer x, compute its factorial y, but exclude any muliplication by five if applicable.

3 days ago

Solved


Don't Sum a Five
Create a function that sums the first and last element of a muti-element vector unless the value of one of the elements is 5. Do...

3 days ago

Solved


Don't Include a Five (Part Two)
Given a vector A with at least one non-five, return vector B, with all fives excluded (not replaced by zeros).

3 days ago

Solved


Don't Include a Five
Given a vector A, return vector B with all 5s replaced with 0s.

3 days ago

Solved


High Five!
Write a function that takes a number x and returns y = 'High Five' if x is not equal to five. Return y = 'Denied' if the number ...

3 days ago

Solved


A Five Introduction
Write a function that takes a number x as an input and returns the same value as y, unless x = 5, in which case the function sho...

3 days ago

Solved


Scaling vertically parabola by evaluating its area over an interval
Let p be a quadratic polynomial, with its axis of symmetry being the y-axis. Considering the vertical shift of its vertex to the...

3 days ago

Solved


Comparing to scale all terms versus one term of even-degree polynomial by the same scale factor
Let p be an even-degree polynomial with positive leading coefficient. Consider the scale factor, k, that vertically transforms ...

4 days ago

Solved


Rotating the plane region bounded by two polynomials
Let p and q be n-degree and m-degree polynomials with n >= m >= 1. Consider clockwise rotate the plane region bounded by these t...

4 days ago

Solved


Rotating 2d curve around a vertical axis
Let p be an even-degree polynomial such that has a unique vertex (single global extremum). Consider the counterclockwise rotatio...

4 days ago

Load more