문제를 풀었습니다


Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

2년 초과 전

문제를 풀었습니다


Euler–Mascheroni constant
Approximate the Euler-Mascheroni constant using the series representation gamma_n=\sum_{k=1}^{n} [1/k-ln(1+1/k)] Calculat...

2년 초과 전

문제를 풀었습니다


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

2년 초과 전

문제를 풀었습니다


solve for y that is half as much as three less than one tenth of x
function y = half(x) y = (x * .1); end

2년 초과 전

문제를 풀었습니다


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

2년 초과 전

문제를 풀었습니다


odd number odd sum
How many three digit numbers are there whose sum of the digits is odd?

2년 초과 전

문제를 풀었습니다


Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

2년 초과 전

문제를 풀었습니다


Find remainder when x is divided by 3
Find remainder when x is divided by 3

2년 초과 전

문제를 풀었습니다


How do you make seven even?
Take away the s.

2년 초과 전

문제를 풀었습니다


given number is power of n or not?
Check weather The input is power of n or not? for example x=8,n=2 --> true x=6,n=2 --> false

2년 초과 전

문제를 풀었습니다


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

2년 초과 전

문제를 풀었습니다


Power The Product
EXAMPLE: INPUT x=10 & y=10 OUTPUT z=1000000 or, INPUT x=2 & y=3 OUTPUT z= 216 you just need to calculate the product first...

2년 초과 전

문제를 풀었습니다


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

2년 초과 전

문제를 풀었습니다


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

2년 초과 전

문제를 풀었습니다


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

2년 초과 전

문제를 풀었습니다


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

2년 초과 전

문제를 풀었습니다


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

2년 초과 전

문제를 풀었습니다


prime test
find largest 2 digit prime number

2년 초과 전

문제를 풀었습니다


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

2년 초과 전

문제를 풀었습니다


For given vectors x,y find coresponding spline coefficients.
For given vectors x,y find coresponding spline coefficients. Example x =[ -3 -2 0 2 3] y =[ 0 0 1 ...

2년 초과 전

문제를 풀었습니다


prime test 2
enter the only non prime,non composite number

2년 초과 전

문제를 풀었습니다


Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...

2년 초과 전

문제를 풀었습니다


Remove the positive integers.
Given array x (of integers), remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -...

2년 초과 전

문제를 풀었습니다


Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

2년 초과 전

문제를 풀었습니다


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

2년 초과 전

문제를 풀었습니다


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

2년 초과 전

문제를 풀었습니다


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

2년 초과 전

문제를 풀었습니다


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

2년 초과 전

문제를 풀었습니다


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...

2년 초과 전

더 보기