An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:*
Many important observations in math and science can be described by short, but powerful, equations...
1 year 前
已解决
Hard limit function
Classify x data as
if x>=0 then y=1
if x<0 then y=0
Example
x = [ -2 -1 0 1 2]
y = [ 0 0 1 1 1]
Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n.
Fun note: technically it...