MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today4Rank

18Badges

23035Score

Jan Orwat submitted Solution 926616 to Problem 42914. Counting the Grand Primes

4 hours and 3 minutes ago

Jan Orwat submitted a Comment to Solution 917113

You can use Gauss formula for triangular numbers. It will improve performance. It won't improve Cody size. To improve Cody size, you need hack. Popular hack is to wrap the code into regular expression. Somebody invented it to cheat scoring algorithm and it spreaded among cody submissions like a cancer. I'm not proud of this, I was using this hack too, fortunately realised that it makes no sense. Advice: don't care so much about the size, care about quality code. Most of super small solutions use some sort of cheats, you won't learn much from those.

on 2 Jul 2016 at 9:27

Jan Orwat submitted a Comment to Problem 42476. Model a falling body

Jonathan, it is unlikely to get rejected due to small error. After complaints, MathWorks/Cody Team took care about it few months ago. Based on submission times, solutions which may be yours were classified incorrect, because one of criterions is to stop simulation after reaching ground level and those solutions don't include this part.

on 2 Jul 2016 at 8:56

Jan Orwat submitted a Comment to Solution 917246

true, not 'true', false, not 'false'

on 30 Jun 2016 at 23:09

Jan Orwat submitted Solution 916968 to Problem 189. Sum all integers from 1 to 2^n

on 30 Jun 2016 at 9:25

Jan Orwat submitted a Comment to Solution 910588

Note that "c(c==-d) = d" means that c and d must be same size or d is scalar. Moreover if d is not a scalar, then all "c==-d" must be true. This code seems to work in rare case, when one value is negative real number, and the rest are positive real numbers, but I have not tested it.

on 18 Jun 2016

Jan Orwat submitted Solution 908587 to Problem 42841. Return the sequence element III

on 14 Jun 2016

Jan Orwat submitted Solution 908566 to Problem 42891. Differential equation and events

on 14 Jun 2016

Jan Orwat submitted Solution 908544 to Problem 42891. Differential equation and events

on 14 Jun 2016

Jan Orwat submitted Solution 906977 to Problem 1031. Composite Trapezoidal Rule for Numeric Integration

on 12 Jun 2016

Jan Orwat submitted Solution 906970 to Problem 966. Bisection method of finding a root.

on 12 Jun 2016

Jan Orwat submitted Solution 906869 to Problem 42316. Fraction of a fraction of a ...

on 11 Jun 2016

Jan Orwat submitted Solution 906727 to Problem 3061. Mirror, mirror on the wall, who is fairest of them all?

on 11 Jun 2016

Jan Orwat submitted Solution 906685 to Problem 42889. Should Mr McNugget even get out of bed today?

on 11 Jun 2016

Jan Orwat submitted a Comment to Solution 906647

Yes, I was looking for something cody-friendly :). I forgot it works in this form iff gcd(n(1),n(2))==1.

on 11 Jun 2016

Jan Orwat submitted Solution 906684 to Problem 42888. Frobenius McNugget Factorization

on 11 Jun 2016