A résolu


Regular polygon bounded by and bounding a circle
As the number of sides (or vertices) of a regular polygon goes to infinity, its perimeter and area go to the perimeter and area ...

plus d'un an il y a

A résolu


How to add?
* Imagine you are in 2222 Anno Domini, when everyone must learn how to add, * and competing for the highly prestigious post of,...

plus d'un an il y a

A résolu


Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

plus d'un an il y a

A résolu


Mandelbrot Number Test [Real+Imaginary]
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

plus d'un an il y a

A résolu


Back to basics 25 - Valid variable names
Covering some basic topics I haven't seen elsewhere on Cody. Given a string, return true if it is a valid MATLAB variable nam...

plus d'un an il y a

A résolu


mathematics , probability problem
How many different result can we have, rolling k dice?

plus d'un an il y a

A résolu


Find the Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the...

plus d'un an il y a

A résolu


Rotation Matrix to Euler Angles
Given a rotation matrix, generate the Euler Angles as output [phi,theta,psi]. [phi is a rotation around X-axis, theta is rotatio...

plus d'un an il y a

A résolu


Covering area
As an extension of the problem <http://www.mathworks.com/matlabcentral/cody/problems/416-polygon-area>, find the area, bounded b...

plus d'un an il y a

A résolu


Area of Triangle with Oblique Coordinates
Find area of triangle given points p1, p2, and p3 where the y-axes is w degrees counter clockwise from the x-axes. For exampl...

plus d'un an il y a

A résolu


Output the Montgomery Form of the Input Matrix

plus d'un an il y a

A résolu


Free-time Equation
Given a 7-day week, an *_nc_* -number of *_tc_* -hour classes, *_ta_* -hours awake in a day, and *_tw_* -hours that you work in ...

plus d'un an il y a

A résolu


Permutations of input vector
Find and output all permutations of given vector

plus d'un an il y a

A résolu


Count the ways to write 1/n as the sum of two unit fractions
The number 1/2 can be written as 1/3+1/6 and 1/4+1/4, and the number 1/9 can be written as 1/18+1/18, 1/12+1/36, and 1/10+1/90. ...

plus d'un an il y a

A résolu


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

plus d'un an il y a

A résolu


Area of the yellow shaded region

plus d'un an il y a

A résolu


Modulation index
The amplitude of the carrier signal is 2V and the amplitude of the modulating signal is 8V. Find its modulation index.

plus d'un an il y a

A résolu


DC-DC boost converter
Find the output voltage of a DC-DC boost converter given input voltage and the duty cycle ratio

plus d'un an il y a

A résolu


Binary Coder
Take an input number and print the binary value of this number.

plus d'un an il y a

A résolu


Find primes and integers that solve an equation
Write a function to find all primes and non-negative integers that solve the equation where is an integer. If there are no...

plus d'un an il y a

A résolu


Cos x
Retorne o cosseno de x, onde x está em radianos

plus d'un an il y a

A résolu


Eleve ao cubo!
dado uma entrada x, encontre o seu cubo

plus d'un an il y a

A résolu


Número de elementos do array
Retorne o número de elementos de um array

plus d'un an il y a

A résolu


Seno de x
Calcule o seno de x, onde x está em radianos

plus d'un an il y a

A résolu


Valor absoluto de x
Dado uma entrada x, retornar o seu valor absoluto

plus d'un an il y a

A résolu


Given the name from the legend, return the handle
Write a function that will return the handle to the desired object. The input for this function will be a string which represent...

plus d'un an il y a

A résolu


Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

plus d'un an il y a

A résolu


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

plus d'un an il y a

A résolu


Logical array indexing - part 1
Given an array |A| of size |p x q| , return an array |Y| of the same size such that the following conditions are satisfied. (...

plus d'un an il y a

A résolu


Find the altitudes of a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the coord...

plus d'un an il y a

Charger plus