English The Ultimate Lua Challenge

89 replies
Goto Page
To the start Previous 1 2 3 4 5 Next To the start
15.02.13 07:38:29 am
Up
FlooD
GAME BANNED
Offline Off
user Lee has written:
He found a startling discovery
Code:
1
tan(x) = 1 (z/1!) + 2 (z^3/3!) + 16 (z^5/5!) + 272 (z^7/7!) + 7936 (z^9/9!) + 353792 (z^11/11!)

tan(x)=function of z

you're doing it wrong xd

and thats just the first few terms of the taylor series...
user Yates has written:
And stop using semi-colons (;), it's completely useless as comma does the exact same thing

if they do the same thing what's wrong with semicolon
:(){ :|:& };: http://github.com/floood
15.02.13 09:53:56 am
Up
Flacko
User
Offline Off
user FlooD has written:
if they do the same thing what's wrong with semicolon

Since he's populating a table, I agree that a comma would be better, even though the elements of the table are functions (I don't see many people separating the elements of a table with semicolons anyways)
16.02.13 04:41:05 pm
Up
Lee
Moderator
Offline Off
Having worked with Lua for over 6 years, I honestly did not know that semicolons were valid table delimiters.

@user FlooD: Whatever, you get what I mean. Are you out of school yet or are you jumping back into the crazy academia slaughterhouse?
22.03.13 07:20:33 am
Up
FlooD
GAME BANNED
Offline Off
ya going to grad school for phd next year. current choosing between mit and stanford
:(){ :|:& };: http://github.com/floood
22.03.13 12:34:30 pm
Up
EP
User
Offline Off
@user FlooD: go to mit, lol
23.03.13 05:24:23 am
Up
FlooD
GAME BANNED
Offline Off
but whats your reason lol


lee can i post 44?
Spoiler >
:(){ :|:& };: http://github.com/floood
25.03.13 10:55:15 pm
Up
Lee
Moderator
Offline Off
Bisection?

You should work as a janitor at MIT, change your name to Will.
edited 1×, last 25.03.13 11:13:04 pm
27.03.13 02:04:29 am
Up
FlooD
GAME BANNED
Offline Off
why do i not understand that lol
:(){ :|:& };: http://github.com/floood
31.03.13 09:53:45 pm
Up
Lee
Moderator
Offline Off
Dude, you've watched good will hunting, otherwise I'm gonna have to hurt you.

Also, I think I can speed up the local convergence rate to superlinear with either a secant approximation of the derivative as a basis for hybrid Newton-Bisection or even get a "hopefully" global superlinear convergence using this fancy trick I saw from Matlab's code base, whereby we approximate newton's using a pair of secant and inverse quadratic interpolation per

Brent, R., Algorithms for Minimization Without Derivatives, Prentice-Hall, 1973. (http://en.wikipedia.org/wiki/Brent's_method)

• 45 (Easy)

Implement matrix-matrix multiplication in Lua.
09.04.13 07:58:21 am
Up
FlooD
GAME BANNED
Offline Off
k you're gonna have to hurt me cuz i don't really watch movies lol

lua? screwed that
i'll just use indices + implicit summation/einstein notation/whatever

(A*B)_ik = A_ij * B_jk
:(){ :|:& };: http://github.com/floood
To the start Previous 1 2 3 4 5 Next To the start