An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:*
Many important observations in math and science can be described by short, but powerful, equations...
約3年 前
解決済み
Test of Quiz
Answer the questions and write in vector. Only one answer is correct.
The founder of fuzzy logic is
1a) D. Golberg
1b)...
約3年 前
解決済み
Test
Answer the question and the correct answer write in vector. Only one answer is correct.
1a Yes
1b No
1c No
1d No
...
約3年 前
解決済み
Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is
720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720)....
約3年 前
解決済み
Half-Swap
Given a vector with an even number of elements,
rearrange it so that the elements in its first
half are switched with those i...
Eye Squared
For a positive integer |n| create the identity matrix with |n| elements.
In case it is not possible to produce an identity ma...
約3年 前
解決済み
Vertical matrix sort
Given a matrix x with n rows and m columns, return a matrix y with 2n rows and m columns, such that every column in x is sorted ...
約3年 前
解決済み
Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|.
Example:
Input: a = 4; b = 7; c ...
約3年 前
解決済み
Repeat The Components of Matrix
Repeat The components of a matrix so that the size of the output matrix is double to input matrix and components are repeated ne...
約3年 前
解決済み
Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1.
Example:
Input x = [ 1 2 0 0 0
...
Colon operator of two vectors
You are given two vectors of equal length: VecStart, VecEnd
Each vector contain a set of integers, where VecEnd(j)>=VecStar...
More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...
約3年 前
解決済み
String Delimination and Outputting
In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...