Gelöst


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

mehr als 9 Jahre vor

Gelöst


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

mehr als 9 Jahre vor

Gelöst


Add 7
Given an input variable x, output a variable y that is 7 greater than x. Example: Input x = 1 Output y is 8 Input ...

mehr als 9 Jahre vor

Gelöst


only input
Return the output without writing any code into the function.

mehr als 9 Jahre vor

Gelöst


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

mehr als 9 Jahre vor

Gelöst


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

mehr als 9 Jahre vor

Gelöst


multiply 2 by 2
multiply 2 by 2

mehr als 9 Jahre vor

Gelöst


wipe out!
make all the elements in given x zero.

mehr als 9 Jahre vor

Gelöst


add 1
given x, y should be 1 greater than the input.

mehr als 9 Jahre vor

Gelöst


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

mehr als 9 Jahre vor

Gelöst


Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

mehr als 9 Jahre vor

Gelöst


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

mehr als 9 Jahre vor

Gelöst


Expand a term
Given a term, as a string, expand it. e. g. f = '2(x + y)';

mehr als 9 Jahre vor

Gelöst


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

mehr als 9 Jahre vor

Gelöst


make an eye matrix which element is 1:n
for a given input n, make an n by n matrix which contains elements 1:n for example input =5 output = [1 0 0 0 0;0 2 0 0 0; 0...

mehr als 9 Jahre vor

Gelöst


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

mehr als 9 Jahre vor

Gelöst


Bell Number calculator
Calculate a vector of Bell numbers for sets up to length n. Bell numbers are the maximum number of partitions of a set. See the ...

mehr als 9 Jahre vor

Gelöst


Evil Number
Check if a given natural number is evil or not. Read more at <https://oeis.org/A001969 OEIS>.

mehr als 9 Jahre vor

Gelöst


Find the 9's Complement
Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

mehr als 9 Jahre vor

Gelöst


Armstrong Number
Determine whether the given input n-digit number is Armstrong Number or not. Return True if it is an Armstrong Number. An n-D...

mehr als 9 Jahre vor

Gelöst


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

fast 10 Jahre vor

Gelöst


Create tangent function out of cosine only
Please don't use tangent and sine functions

fast 10 Jahre vor

Gelöst


Create tangent function out of sin and cos
Please don't use tan(x) directly

fast 10 Jahre vor

Gelöst


Create tangent function out of sine function only
Please don't use cosine and tangent functions

fast 10 Jahre vor

Gelöst


Sum positive elements of matrix.
Calculate sum of positive elements of the matrix.

fast 10 Jahre vor

Gelöst


Compare two strings.
Compare two strings, whether they are equal or not.

fast 10 Jahre vor

Gelöst


find the 'M'
for an input x, return 1 at the location of the letter 'M'

fast 10 Jahre vor

Gelöst


sum as columns
sum as columns.

fast 10 Jahre vor

Gelöst


Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

fast 10 Jahre vor

Gelöst


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

fast 10 Jahre vor

Mehr laden