Browse Search Popular Register Upload Rules User list Login:
Search:
FRA32 Presents: The most useless Function ever seen!

Image:
screenshot of the scene

Author: FRA32

Group: Technical

Filesize: 11.18 kB

Date added: 2016-03-11

Rating: 5

Downloads: 645

Views: 443

Comments: 13

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Here I present you: The most useless Function that ever existed! What it does you ask? Okay, grab your chairs, because you're about to fall asleep: It draws a SQUARE!!! Thats right folks, this needlesly complicated parametric function draws a mere square. But at least its a pure mathematic function. No special thyme tweaks, all it has is a simple(complicated) f(T)= x|y parametric function compiled into organized thyme code(Before this scene, I designed the function on a standart school graphic calculator...).

Enjoy (your dreams after falling asleep)
Last edited at 2016/07/03 21:46:59 by FRA32
Please log in to rate this scene
edit
Similar scenes
Title: Schienenfahrzeug / Railcart (Für FRA32)
Rating: 5
Filesize: 30.82 kB
Downloads: 1169
Comments: 7
Ratings: 1
Date added: 2014/07/09 15:00:29
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Totally Useless Camshaft
Rating: 5
Filesize: 30.84 kB
Downloads: 419
Comments: 0
Ratings: 1
Date added: 2014/10/03 02:56:06
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Christmas contest entry
Rating: 6.1111
Filesize: 322.25 kB
Downloads: 529
Comments: 4
Ratings: 3
Date added: 2009/12/21 11:56:37
Made with: Phun
Rating: rated 6.1
download
Title: Santa's slay
Rating: 5.1111
Filesize: 54.56 kB
Downloads: 1770
Comments: 7
Ratings: 3
Date added: 2011/12/05 03:31:32
Made with: Algodoo v2.0.0 Edu
Rating: rated 5.1
download
Title: Koch pattern (hacked version of FRA32's scene)
Rating: 6.5
Filesize: 3.48 kB
Downloads: 508
Comments: 5
Ratings: 4
Date added: 2018/12/13 06:18:57
Made with: Algodoo v2.1.0
Rating: rated 6.5
download
Title: KGameX Presents
Rating: 5.625
Filesize: 20.7 kB
Downloads: 642
Comments: 3
Ratings: 2
Date added: 2022/08/19 13:41:08
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
That's a lot of code to draw such a simple shape! I could draw a circle with pos := [sin(x),cos(y)] or a simple square with similar manipulation of pos values which is the simplest method of translating a geometry. :*)

Math is more fun than anything I could do in my bedroom! :lol:

Hey, let's post some more interesting math functions and equations that do really interesting and amazing things! I'll try to come up with some too. :tup:
Last edited at 2016/03/11 20:19:28 by Xray
Well, this lil' ol square bases on the equation f(T) = 2cos(T) | 2sin(T) which makes a circle with radius 2. after that, I made some messy work with "cutting of the round parts". If I had to explain this, we need to view only 1 of the 2 parameters:
So, if you had the function 2cos(T), how do you cut of the lower quarter? It's kinda simple: Create a duplicate of the function, then move it so that the cutting line is equal to the X-axis, and then get the absolute value of it. Result: Negative turns positive. Now move it back and add both the duplicate and the original. Result: All positive values are doubled, all negative values equal 0 since: -5+ |-5| = 0 b BUT 5 + |5| = 10
Now divide everything by 2 to get the cut sine. Now is the question: You have cut off the lower quarter of the sine, but whazzabout the top half? Well, mirror the sine, and repeat the whole process with the now achived function(cutting of 1 quarter of a function that already has been cut is messy). What you get is a sine with no extremes, but instead having alternating long-time-values that quickly change in periods of nearly the same size. If you do the same thing with sine, you get a square since both x and y coordinate alternate between staying at the current border or drawing across to the opposite one while the other parameter is static.

So, you can see, much maths for nothing:lol:
period := 5.0;
theta := 2.0 * math.pi * (sim.time % period) / period;
pos = [cos(theta), sin(theta)] / cos((theta + math.pi / 4.0) % (math.pi / 2.0) - math.pi / 4.0)
Last edited at 2016/03/12 05:48:07 by s_noonan
You guys are so L7! :lol:
Last edited at 2016/03/12 06:04:12 by Xray
Je ne comprends pas "L7!".

Ok, so I think I got it, you are saying that we are not hip and are a couple of squares, is that it daddy-o? I would think that a square would be made like this "[ ]" or "◘" or "■" or □.
Last edited at 2016/03/12 11:11:13 by s_noonan
Yup, you got it! The first time that I heard that archaic expression was from the lyrics of "Wooly Bully" by Sam The Sham & Pharaohs (way back in the Stone Age when I was a kid).
how the heck do you do that withowt scripting? I checked on the script menu and everything was normal.
oh I checked harder, there is script!
FRA32, tazzo is keep on spamming stupid stuffs! (Like Balls and stupid title name) Can you help me comment related to "Stop spamming" to tazzo?
Not completly useless
That thing knocks shapes arodound like there nothing. Just draw a rectangle or somthing with the polygon tool than turn on gravity - that ball will launch it at a very descent speed.
Ummmm... wut? well, maybe it is boring but it is definitly not useless. for example you can use it to fall asleep faster XD
Managed to make it draw a circle. SOMEHOW.
@Kole1911Returns
Hoooow:o