Solve equation numerically
y'=y
In order to solve equation using computer, numerical analysis are needed. 1st order Euler's method is one of the metho...
5년 초과 전
문제를 풀었습니다
Solve system of equation!
Given provided system of equation, and find x and y.
System of equation can be expressed as each term's coefficient. For exam...
5년 초과 전
문제를 풀었습니다
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...
Find the Area of a Polygon
Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the...
5년 초과 전
문제를 풀었습니다
calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter).
You should get pi without using the pi function in M...
Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array
5년 초과 전
문제를 풀었습니다
Simple return on investment
Assume you have some money and want to invest all your money to stock market. You randomly select a stock and invest all your mo...
5년 초과 전
문제를 풀었습니다
Back to basics 16 - byte order
Covering some basic topics I haven't seen elsewhere on Cody.
Switch the byte order of the input (i.e. if little-endian -> big...