A résolu


cofactor matrix
given a matrix, find its cofactor matrix <https://en.wikipedia.org/wiki/Minor_(linear_algebra)#Inverse_of_a_matrix>

presque 3 ans il y a

A résolu


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

presque 3 ans il y a

A résolu


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

presque 3 ans il y a

A résolu


Check if a number belongs in the fibonacci squence
Test if integer i is a number in the fibonacci sequence. Return true if it is.

presque 3 ans il y a

A résolu


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

presque 3 ans il y a

A résolu


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

presque 3 ans il y a

A résolu


Convert Fahrenheit to Kelvin
Convert the value f in Fahrenheit to Kelvin

presque 3 ans il y a

A résolu


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

presque 3 ans il y a

A résolu


Reepeating numbers in array
Repeating numbers in array In = [1 0 0 0 2 0 0 0 3 0 0 0 0 0 5 0 0 0 0]. Out = [1 1 1 1 2 2 2 2 3 3 3 3 3 3 5 5 5 5 5].

presque 3 ans il y a

A résolu


check whether a number is a pentatope number
<https://oeis.org/A000332>

presque 3 ans il y a

A résolu


generate nth pentatope number
https://en.wikipedia.org/wiki/Pentatope_number

presque 3 ans il y a

A résolu


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

presque 3 ans il y a

A résolu


Repeat elements of a vector
Repeat each elements of a given vector according to their values. * x=[1,2,1,3] * y=[1,2,2,1,3,3,3]

presque 3 ans il y a

A résolu


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

presque 3 ans il y a

A résolu


factorial
calculate x!

presque 3 ans il y a

A résolu


The length of the equal sides of an isoceles triangle is 'a'.For all the possible (integer) values of the remaining side,find the associated angles between the two equal sides.
the remaining side may have many possible values.only assume integer ones for simplicity.

presque 3 ans il y a

A résolu


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the si...

presque 3 ans il y a

A résolu


Summing Rows and Columns
Create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last...

presque 3 ans il y a

A résolu


Cross ("+") flag returns
Given two numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1, an...

presque 3 ans il y a

A résolu


Create a "+" flag
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

presque 3 ans il y a

A résolu


Sum Sum Sum!
Calculate the sum of the natural numbers from 1 to n

presque 3 ans il y a

A résolu


SAY 'OHYEAH'
Regardless of input, output the string 'OHYEAH'.

presque 3 ans il y a

A résolu


Chào các bạn.
Cho 3 số. Tính tổng của chúng

presque 3 ans il y a

A résolu


Vogel-Dobbener entropy
*Vogel-Dobbener entropy* is a measure of dispersion for ordinal variables. Given an ordered list of distinct observations u_...

presque 3 ans il y a

A résolu


Square root of number
Square root of given number.

presque 3 ans il y a

A résolu


Efficiency of a single phase Transformer
Calculate the efficiency of a single phase transformer whose KVA rating is A KVA, loading factor x,power factor p,full load copp...

presque 3 ans il y a

A résolu


Ratio between sum of primes and sum of factors
Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of ...

presque 3 ans il y a

A résolu


Ratio between sums of prime and non-prime numbers
Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

presque 3 ans il y a

A résolu


Get the mean digit
Write a function that gives the mean digit (round towards nearest integer) of an input and positive number. For example: x ...

presque 3 ans il y a

A résolu


Check if is a square
Given four coordinates, write a function to check if they form a square on the XY plane.

presque 3 ans il y a

Charger plus