Community Profile

photo

Gergely Patay


1 997 total contributions since 2012

R&D physicist, LEGO enthusiast

Contact

Gergely Patay's Badges

  • Scavenger Finisher
  • Cody Problems in Japanese Master
  • Introduction to MATLAB Master
  • Community Group Solver
  • Project Euler I
  • Cody Challenge Master
  • Computational Geometry I Master
  • Tiles Challenge Master
  • Speed Demon
  • ASEE Challenge Master
  • Scholar
  • Promoter
  • Commenter
  • Leader
  • CUP Challenge Master

View all

Contributions in
View by

Solved


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

7 jours ago

Solved


Calculate BMI
Given a matrix |hw| with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 inch = 2.54 centimet...

9 jours ago

Solved


Find the Best Hotels
Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

15 jours ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

15 jours ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

15 jours ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the rolls is likely to be close to the expected value of a sin...

15 jours ago

Solved


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt).cos(2πft)| Given inputs λ ( |lambda...

15 jours ago

Solved


Solve a System of Linear Equations
Given a constant input angle θ(theta) in radians, create the coefficient matrix(A) and constant vector(b) to solve the giv...

15 jours ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

15 jours ago

Solved


Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

16 jours ago

Solved


Bernoulli's Equation
Bernoulli's equation states that for an incompressible fluid the following summation is constant across the flow: v^2/2 + g*z + ...

16 jours ago

Solved


Square root of number
Square root of given number.

20 jours ago

Solved


Divisible by 12
Write a function to determine if a number is divisible by 12. Similar to the number six, this can be done by checking for divisi...

environ un mois ago

Solved


Divisible by 4
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

environ un mois ago

Solved


Find square of given number
Find Square of any number

environ un mois ago

Solved


Number of primes
Count the number of primes less than 'n'.

environ un mois ago

Solved


Display negative numbers
Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

environ un mois ago

Solved


Nth root
Nth root of a number x

environ un mois ago

Solved


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

environ un mois ago

Solved


kmph to mph converter
Convert the speed in miles/hour to km/hour.

environ un mois ago

Solved


Create a constant offset.
Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

environ un mois ago

Solved


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

environ un mois ago

Solved


Generate one sample of uniform random numbers between -pi and +pi
Generate one sample of uniform random numbers between -pi and +pi.

environ un mois ago

Solved


Float like a cannonball
Given gravity on earth (g=9.81 [m/s/s]) find the distance s [m] by a cannonball propelled at a speed of u [m/s] from the origin ...

environ un mois ago

Solved


Matrix diagonalization
You will be given Two matrices A and B. Return 1 if B is the diagonal matrix of A, 0 otherwise

environ 2 mois ago

Solved


Hilbert numbers
Given a positive integer, n, return h as follows: 1. If n is not a <https://en.wikipedia.org/wiki/Hilbert_number Hilbert numb...

environ 2 mois ago

Solved


Sum two matrices
Take two incoming matrices, and sum them

environ 2 mois ago

Solved


Speed of car travelling x meters in y seconds
What is the speed of a car if the car travelled x meters in y seconds? Supply the answer in m/s.

environ 2 mois ago

Solved


raise 1/3
Raise a number to 1/3 power.

environ 2 mois ago

Solved


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

environ 2 mois ago

Load more