Community Profile

photo

Gergely Patay


2 001 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


to the 2 all elements
to the 2 all elements

15 jours ago

Solved


square a number twice with square root of 4/5
square a number twice with square root of 4/5

15 jours ago

Solved


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

15 jours ago

Solved


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

29 jours ago

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 ...

environ un mois 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...

environ un mois 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...

environ 2 mois 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...

environ 2 mois 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...

environ 2 mois 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...

environ 2 mois 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...

environ 2 mois 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...

environ 2 mois 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 ...

environ 2 mois 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...

environ 2 mois 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 + ...

environ 2 mois ago

Solved


Square root of number
Square root of given number.

environ 2 mois 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...

2 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...

2 mois ago

Solved


Find square of given number
Find Square of any number

2 mois ago

Solved


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

3 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].

3 mois ago

Solved


Nth root
Nth root of a number x

3 mois ago

Solved


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

3 mois ago

Solved


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

3 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]

3 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...

3 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.

3 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 ...

3 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

3 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...

3 mois ago

Load more