Jess Stuart - MATLAB Cody - MATLAB Central

Jess Stuart

11559
Rank
3
Badges
455
Score
1 – 50 of 58

Jess Stuart submitted a Comment to Problem 156. Parasitic numbers

Can the problem creator disqualify "solutions" that cheat? There should be a point penalty (-200) associated with cheating too.

on 8 Feb 2017

Jess Stuart submitted a Comment to Solution 1117273

exp(log(x)+log(y)) works with a trivial amount of roundoff error. Matlab is a numeric language. Using Isequal() is dumb.

on 8 Feb 2017

Jess Stuart submitted Solution 1117255 to Problem 167. Pizza!

on 7 Feb 2017

Jess Stuart submitted a Comment to Solution 1117184

Nice little bug in there.

on 7 Feb 2017

Jess Stuart submitted a Comment to Solution 1117157

Should add tolerance of 10*eps to make this function practical. Otherwise you can have a triangle with a 89.9999999 deg angle and it will say it is not a right triangle. Matlab is a numerical language.

on 7 Feb 2017

Jess Stuart submitted a Comment to Solution 1117120

Your weight vector should be a unit vector. W=w/norm(w) to get a true weighted average. Dividing by the max is dumb.

on 7 Feb 2017

Jess Stuart submitted a Comment to Problem 2033. poll: would you like the regexp (?@cmd) functionality to be banned in Cody?

Is there a way to parse the code inside the regex and assign an appropriate size to it? That would seem like the most fair thing to do.

on 7 Feb 2017

Jess Stuart submitted a Comment to Problem 42775. Raise a polynomial to a power

Thought of another way to do this... q=poly(kron(roots(p),ones(N,1))); One-liner with size 21, but fails because of trivial roundoff error :(

on 6 Feb 2017

1 – 50 of 58
Go to top of page