Gelöst


currency converter
given a rate of exchange calculate the equivalent units of 100 USD

mehr als 2 Jahre vor

Gelöst


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

mehr als 2 Jahre vor

Gelöst


Ounces to Kilograms
convert ounces to kilograms, easy

mehr als 2 Jahre vor

Gelöst


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

mehr als 2 Jahre vor

Gelöst


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

mehr als 2 Jahre vor

Gelöst


cube of number
find cube of number

mehr als 2 Jahre vor

Gelöst


GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA

mehr als 2 Jahre vor

Gelöst


Fermat's last theorem - again
For a given integer n, express it as a sum of two squares if possible. Return empty matrix otherwise. Solution may not be unique...

mehr als 2 Jahre vor

Gelöst


modular arithmetic
Given three integers a,b and c, find the remainder when a^b is divided by c. Here, a^b will be well beyond the largest 64 bit in...

mehr als 2 Jahre vor

Gelöst


grazing cows
Here is a fun problem I encountered in high school. Two cows are grazing in an enclosed square-shaped field of side length s ...

mehr als 2 Jahre vor

Gelöst


Mongean Shuffle
A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

mehr als 2 Jahre vor

Gelöst


07 - Common functions and indexing 5
Create the vector _lin_: <<http://samle.dk/STTBDP/Assignment1_7e.png>> (the integers from 1 to 20) Make every other val...

mehr als 2 Jahre vor

Gelöst


Create an 'arrow-head" matrix
Write a function that when given an odd number, produces an arrow-head function pointing to the right. Examples n = 3 ...

mehr als 2 Jahre vor

Gelöst


root?
* Given a function 'foo', and a position 'there', find the root near 'there'. * For example: If foo=@sin, and there=3.1, then r...

mehr als 2 Jahre vor

Gelöst


Partial pivoting for Gauss Elimination
Write a function to implement partial pivoting for Gauss elimination, given the pivot element.

mehr als 2 Jahre vor

Gelöst


String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

mehr als 2 Jahre vor

Gelöst


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

mehr als 2 Jahre vor

Gelöst


convert 24 hour time to 12 hour time
convert 24 hour time to 12 hour time Input: '13:12' Output: '01:12 PM' Input: '06:12' Output: '06:12 AM'

mehr als 2 Jahre vor

Gelöst


Add Odd and Subtract Even Numbers in an Array
For an input array, add all the odd values and subtract the even values. The final value is the output. E.g. input = [1 2 3 4 ...

mehr als 2 Jahre vor

Gelöst


Create a vector with n repeated values of a number x (★★)
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

mehr als 2 Jahre vor

Gelöst


Calculate solution of given polynomial
For example, y=function([3 -2 -4]) In here, input vector indicate 3*x^2-2*x-4, y is solution of former equation. y=[1.5...

fast 3 Jahre vor

Gelöst


determine if
determine if the elements of a matrix is a nan and return true

fast 3 Jahre vor

Gelöst


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

fast 3 Jahre vor

Gelöst


Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

fast 3 Jahre vor

Gelöst


Determine whether a given point is inside or outside a polygon
A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of t...

fast 3 Jahre vor

Gelöst


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

fast 3 Jahre vor

Gelöst


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

fast 3 Jahre vor

Gelöst


Nth root
Nth root of a number x

fast 3 Jahre vor

Gelöst


Times 5
Try out this test problem first. Given the variable x as your input, multiply it by five and put the result in y. Examples...

fast 3 Jahre vor

Gelöst


divide by 5

fast 3 Jahre vor

Mehr laden