A résolu


Linearly Spaced Array
Create a linearly spaced array from 0 to x consisting of y elements.

7 mois il y a

A résolu


Sum of even numbers in a vector
Write a function that takes a vector of numbers and returns the sum of all the even numbers in the vector.

7 mois il y a

A résolu


Addition
Add together the values of a and b.

7 mois il y a

A résolu


Multiplication
Multiply a and b.

7 mois il y a

A résolu


Squares
Find the square of x.

7 mois il y a

A résolu


Subtraction
Subtract a from b.

7 mois il y a

A résolu


Division
Divide a by b.

7 mois il y a

A résolu


Point on a line
Find the slope of the straight line between the points a and b. Then find y at x=20.

7 mois il y a

A résolu


Write a string
The answer should be a string that is the value: "I like apples!" (Ignore the quotation marks, just write what is inside the ...

7 mois il y a

A résolu


X-intercepts of a quadratic.
Find the y value of the quadratic of the function at a point x.

7 mois il y a

A résolu


Addition II
find a+b+c+d

7 mois il y a

A résolu


Exponents
Set a varible y = to x^2

7 mois il y a

A résolu


Solve for factorial of X
It gives you the number x, and set y equal to x factorial. Ex. There are 52 cards in a deck, each specific order of all 52 car...

7 mois il y a

A résolu


Return the Square of a Number
Write a function that takes a single numeric input x and returns its square. That is, given x, your function should output x^2....

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


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

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


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).

7 mois il y a

A résolu


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

7 mois il y a

A résolu


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 ...

7 mois il y a

A résolu


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...

7 mois il y a

A résolu


List the near-square primes, p = n² + 1 (Landau's 4th problem)
Historical context At the 1912 International Congress of Mathematicians, Edmund Landau listed four basic problems about prime...

8 mois il y a

A résolu


List primes which are the sum of two consecutive lower primes plus minus one
Problem statement Some prime numbers can be written as the sum of two consecutive lower primes plus / minus one : Like t...

8 mois il y a

A résolu


Who Holds the Lord Ned Challenge Shield?
During the Nedball Premier League regular season, each of the n teams plays each of the other (n-1) teams twice, once at home an...

8 mois il y a

A résolu


Clueless - Lord Ned in the Game Room with the Technical Computing Language
[Warning: this is a nontrivial programming problem] Worried about the decline in reasoning skills in the clueless populace of...

8 mois il y a

A résolu


Popular Word Game™ Distance
Professor Ned, who holds the Nedowed Chair of Crackpot Mathematics at the University of Nedsburg, has recently discovered the da...

8 mois il y a

A résolu


The Bridges of Nedsburg
The fabled city of Nedsburg consists of several islands connected by bridges. Due to tectonic forces, shoddy civil engineering, ...

8 mois il y a

Charger plus