Risolto


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

oltre 2 anni fa

Risolto


Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000

oltre 2 anni fa

Risolto


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

oltre 2 anni fa

Risolto


MATLAB Basic: rounding IV
Do rounding towards plus infinity. Example: -8.8, answer -8 +8.1 answer 9 +8.50 answer 9

oltre 2 anni fa

Risolto


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

oltre 2 anni fa

Risolto


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

oltre 2 anni fa

Risolto


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

oltre 2 anni fa

Risolto


Multiply pi
Multiply pi with x!

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

oltre 2 anni fa

Risolto


Degrees to Radian
Convert degrees to radians

oltre 2 anni fa

Risolto


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

oltre 2 anni fa

Risolto


Convert degrees to radians
Given input in degrees, output to radians

oltre 2 anni fa

Risolto


Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

oltre 2 anni fa

Risolto


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

oltre 2 anni fa

Risolto


factorial of a number x
Factorial of a number x

oltre 2 anni fa

Risolto


Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

oltre 2 anni fa

Risolto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

oltre 2 anni fa

Risolto


Square root of a number
Write a code that will output the square root of x.

oltre 2 anni fa

Risolto


Laws of motion 1

oltre 2 anni fa

Risolto


Laws of motion 2

oltre 2 anni fa

Risolto


Laws of motion 6

oltre 2 anni fa

Risolto


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

oltre 2 anni fa

Risolto


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

oltre 2 anni fa

Risolto


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

oltre 2 anni fa

Risolto


square root
Find the square root (y) of an input (x).

oltre 2 anni fa

Risolto


y equals x divided by 2
function y = x/2

oltre 2 anni fa

Risolto


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

oltre 2 anni fa

Carica altro