Risolto


Convert given decimal number to binary number.
Convert given decimal number to binary number. Example x=10, then answer must be 1010.

12 mesi fa

Risolto


Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

12 mesi fa

Risolto


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vertices of ...

12 mesi fa

Risolto


Make an N-dimensional Multiplication Table
*INSTRUCTIONS* This is a multi-dimensional variant of the normal multiplication table used to teach elementary students multi...

12 mesi fa

Risolto


Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

12 mesi fa

Risolto


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

12 mesi 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;...

12 mesi fa

Risolto


to the 2 all elements
to the 2 all elements

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.

12 mesi fa

Risolto


Temperature Conversion 2

12 mesi fa

Risolto


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

12 mesi fa

Risolto


Converts numbers into characters
Converts numbers into characters

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Temperature Conversion 1

12 mesi fa

Risolto


Voltage Divider Calculation
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in serie...

12 mesi fa

Risolto


LED Current Calculation
In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law: ​​ Where: I is the current ...

12 mesi fa

Risolto


Inductor Energy Storage Calculation
The energy (EEE) stored in an inductor is given by the formula: Where: E is the energy in joules (J) L is the inductance in...

12 mesi fa

Risolto


Calculate Charge Using Capacitance and Voltage
The charge (Q) stored in a capacitor is given by the formula:Q=C×V where: C is the capacitance (in farads) V is the voltage (...

12 mesi fa

Risolto


Energy Stored in a Capacitor
The energy (E) stored in a capacitor is given by the formula: where: C is the capacitance (in farads) V is the voltage (in ...

12 mesi fa

Risolto


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

12 mesi fa

Risolto


Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I​ where: V is the voltage (in volts) I is the current (in ampere...

12 mesi fa

Risolto


Total energy

12 mesi fa

Risolto


Potential energy calculation

12 mesi fa

Risolto


Laws of motion 2

12 mesi fa

Risolto


Kinetic energy calculation

12 mesi fa

Carica altro