Risolto


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

oltre 2 anni fa

Risolto


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

oltre 2 anni fa

Risolto


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Potential energy calculation

oltre 2 anni fa

Risolto


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

oltre 2 anni fa

Risolto


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

oltre 2 anni fa

Risolto


Laws of motion 6

oltre 2 anni fa

Risolto


Laws of motion 3

oltre 2 anni fa

Risolto


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

oltre 2 anni fa

Risolto


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

oltre 2 anni fa

Risolto


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

oltre 2 anni fa

Risolto


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

oltre 2 anni fa

Risolto


Converts numbers into characters
Converts numbers into characters

oltre 2 anni fa

Risolto


Find the max element of the array
Find the max element of the array

oltre 2 anni fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

oltre 2 anni fa

Risolto


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

oltre 2 anni fa

Risolto


to the 2 all elements
to the 2 all elements

oltre 2 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

oltre 2 anni fa

Risolto


Double all elements in the array
Duplicate all elements in the array

oltre 2 anni fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

oltre 2 anni fa

Risolto


Draw a '0' in a one matrix!

oltre 2 anni fa

Risolto


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

oltre 2 anni fa

Risolto


Draw a '4' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '6' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '9' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '7' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '8' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '3' in a zero matrix!

oltre 2 anni fa

Risolto


Draw a '2' in a zero matrix!

oltre 2 anni fa

Carica altro