A résolu


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

plus d'un an il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus d'un an il y a

A résolu


Matrix Pattern 1

plus d'un an il y a

A résolu


Find the Pattern 3

plus d'un an il y a

A résolu


Find the Pattern 1

plus d'un an il y a

A résolu


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

plus d'un an il y a

A résolu


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

plus d'un an il y a

A résolu


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

plus d'un an il y a

A résolu


Draw a '4' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '6' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '9' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '7' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '8' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '3' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '2' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '5' in a zero matrix!

plus d'un an il y a

A résolu


Draw a '1' in a zero matrix!

plus d'un an il y a

A résolu


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

plus d'un an il y a

A résolu


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

plus d'un an il y a

A résolu


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

plus d'un an il y a

A résolu


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

plus d'un an il y a

A résolu


Special matrix
Make a square matrix with this shape. For n=4 M = 1 1 0 0 1 0 1 0 0 1 0 ...

plus d'un an il y a

A résolu


Pascal's Matrix
Given an integer n &ge; 0, generate the ( _n_+1) &times; ( _n_+1) lower triangular <http://en.wikipedia.org/wiki/Pascal_matrix P...

plus d'un an il y a

A résolu


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

plus d'un an il y a

A résolu


Mass Conversion 2

plus d'un an il y a

A résolu


Mass Conversion 1

plus d'un an il y a

A résolu


Temperature Conversion 3

plus d'un an il y a

A résolu


Temperature Conversion 2

plus d'un an il y a

A résolu


Temperature Conversion 1

plus d'un an il y a

Charger plus