| Frusteration | |
|
+3Jay.J AquaAscension Piddagoras 7 posters |
|
Author | Message |
---|
Piddagoras Map Maker
Number of posts : 592 Registration date : 2008-05-22 Age : 36 Location : California
Your Character Level: 1 Primary Move: Cosines and Sines.
| Subject: Frusteration Sun Sep 14, 2008 4:47 am | |
| So this morning I was waiting for my boss to drop some merch. off and I decided to put matrices into JASS. Even if I can't imagine what they would be useful for.
Anyway, I got the basic structure down, you can add, multiply and copy matrixes. So then I decided "Hey, your linear algebra professor hasnt covered determinants yet, but fuck it, lets try some arbitrary determinant determination using enough loops to make a rubber band ball". So i made some functions that I believe at this point would do all the math correctly.
And then WC3 throws me off a cliff. For whatever reason, even using cheap trickery I can't loop my cofactor function for each entry in a row, I can call the determinant which will call the cofactor which will call the determinant and then chain some returns, but if i try to run it twice consecutively, WC3 dies like it was on the pedestrian side of a pedestrian/train collision.
I can't get it to work, this is basically just to vent, because I haven't made any progress in the last 3 hours. | |
|
| |
AquaAscension Legendary
Number of posts : 580 Registration date : 2008-05-21
Your Character Level: 1 Primary Move: Flying Dragon Kick
| Subject: Re: Frusteration Sun Sep 14, 2008 4:59 am | |
| I had an issue like this with a GUI script and a repeating trigger that would select 2 units to duel randomly, but there were factors determining which would fight (like if the unit had fought in the previous duel, if the second unit was the same unit as the first duelist picked, if the second duelist was on the same team as the first, etc. etc). At first, the trigger would spas the f out and run itself too quickly. Or something like that. I had to add a wait function for it to work properly. Slows it, but keeps it stable. | |
|
| |
Piddagoras Map Maker
Number of posts : 592 Registration date : 2008-05-22 Age : 36 Location : California
Your Character Level: 1 Primary Move: Cosines and Sines.
| Subject: Re: Frusteration Sun Sep 14, 2008 5:36 am | |
| Okay, I just pwnt JASS, determinants are now in, they're relatively fast too, considering how many calculations it takes. | |
|
| |
Jay.J Head Admin
Number of posts : 3470 Registration date : 2008-05-21 Age : 33 Location : Toronto
Your Character Level: ∞ Primary Move: Moderate
| Subject: Re: Frusteration Sun Sep 14, 2008 1:09 pm | |
| | |
|
| |
TanK_OwneR Apprentice Sage
Number of posts : 718 Registration date : 2008-05-26 Age : 31 Location : The Shadows
Your Character Level: 1 Primary Move: Flying Face Pwn
| Subject: Re: Frusteration Sun Sep 14, 2008 1:13 pm | |
| ok this sounds like pyth went from WTF hopeless to I R GOD KING!! | |
|
| |
Dragonheart91 Godlike Sage
Number of posts : 2358 Registration date : 2008-05-21
Your Character Level: 1 Primary Move: Cursed Waves (pwned much?)
| Subject: Re: Frusteration Sun Sep 14, 2008 1:44 pm | |
| Those are his two default states of mind. | |
|
| |
Lagger09 Legendary
Number of posts : 535 Registration date : 2008-05-23 Age : 31 Location : SoCal
Your Character Level: 1 Primary Move: I am the Destroyer of Time... guess...
| Subject: Re: Frusteration Sun Sep 14, 2008 6:16 pm | |
| And it switched w/in 45 minutes of each other, gj. I have no idea how one would use this though. | |
|
| |
Piddagoras Map Maker
Number of posts : 592 Registration date : 2008-05-22 Age : 36 Location : California
Your Character Level: 1 Primary Move: Cosines and Sines.
| Subject: Re: Frusteration Sun Sep 14, 2008 6:40 pm | |
| You are quite correct Dragon.
I have now incorporated the adjoint function into the system, which basically means that now I can tell it to solve systems of equations of any number of variables for me.
I still have no ideas on how this could ever be useful in a map, but the fact that I made it makes me feel triumphant.
I mispelled frustration because I felt like it, in case anyone else besides DBC noticed that. | |
|
| |
Dragonheart91 Godlike Sage
Number of posts : 2358 Registration date : 2008-05-21
Your Character Level: 1 Primary Move: Cursed Waves (pwned much?)
| Subject: Re: Frusteration Sun Sep 14, 2008 8:50 pm | |
| I did, and assumed it was intentional. Extending the word artificially like that makes it seem more exasperated. | |
|
| |
Guest Guest
| Subject: Re: Frusteration Sun Sep 14, 2008 9:19 pm | |
| lol@pyth i love the change in less than an hour..
good job glad you got jo problem fixed.. |
|
| |
Piddagoras Map Maker
Number of posts : 592 Registration date : 2008-05-22 Age : 36 Location : California
Your Character Level: 1 Primary Move: Cosines and Sines.
| Subject: Re: Frusteration Sun Sep 14, 2008 9:27 pm | |
| Well, i was working on it for that entire hour, I was about to give up, even though the problem wasn't with the principle of functions calling themselves and others, it was just a slight overestimation of what I could do with JASS, just rewriting it as one function calling itself instead of two functions calling each other made it work much better.
It turns out even after i fixed that problem I had another, everytime I would destroy a matrix, it would almost completely zero out the entries, but the entries at the end of rows of new matrices that didnt have nextEntry pointers reassigned on creation would still point to entries in other rows, often leading to infinite function calls, which is always more fun than WC3 can handle. | |
|
| |
Guest Guest
| Subject: Re: Frusteration Sun Sep 14, 2008 9:31 pm | |
| lol@pyth again for trying to explain this to me haha...
you can try all you want pyth but this just goes through me like.. well i cant think of anything that goes through me that fast but ya you get the point.. |
|
| |
AquaAscension Legendary
Number of posts : 580 Registration date : 2008-05-21
Your Character Level: 1 Primary Move: Flying Dragon Kick
| Subject: Re: Frusteration Mon Sep 15, 2008 4:30 am | |
| - Quote :
- I mispelled frustration because I felt like it, in case anyone else besides DBC noticed that.
You also, ironically, misspelled "mispelled". And I would have noticed but, again, school > WC3. Also, you might as well be speaking Martian when you speak of functions and Matrices. I understand math slightly more than other English majors but... yeah, not that much Props on the solving of complex equations from a simple system though Maybe you can make a calculator program just to show off your leetness? Call it Tangents or something and have people solve incredibly complex equations like in those puzzle games but geared towards people who understand the language known as math. | |
|
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 5:41 pm | |
| - AquaAscension wrote:
-
- Quote :
- I mispelled frustration because I felt like it, in case anyone else besides DBC noticed that.
You also, ironically, misspelled "mispelled". And I would have noticed but, again, school > WC3. Also, you might as well be speaking Martian when you speak of functions and Matrices. I understand math slightly more than other English majors but... yeah, not that much
Props on the solving of complex equations from a simple system though
Maybe you can make a calculator program just to show off your leetness? Call it Tangents or something and have people solve incredibly complex equations like in those puzzle games but geared towards people who understand the language known as math. this is not math.. this is pythometry... math is much more simple.. just thought id put that out there.. |
|
| |
Piddagoras Map Maker
Number of posts : 592 Registration date : 2008-05-22 Age : 36 Location : California
Your Character Level: 1 Primary Move: Cosines and Sines.
| Subject: Re: Frusteration Mon Sep 15, 2008 6:30 pm | |
| Heh, its just linear algebra, the class I'm taking right now.
The thing that sucks though is that I can't think of a way to teach JASS to row reduce a matrix to REF to find determinants, I have to do it the hard way that reaches JASS's operation limit at a weak 7x7 matrix. The problem is that a 7x7 matrix has to compute 7 6x6 matrix determinants, and a 6x6 has to compute 6 5x5s and so on. The number of operations required increases quite quickly and JASS doesn't like it. | |
|
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 6:36 pm | |
| ill just nod and act like i understand..
[nod nod] |
|
| |
SinisteRing Webmaster
Number of posts : 2032 Registration date : 2008-05-21 Age : 31 Location : New Hampshire
Your Character Level: 1 Primary Move: Telekinetic Choke
| Subject: Re: Frusteration Mon Sep 15, 2008 6:49 pm | |
| - Pythagoras wrote:
- one function calling itself instead of two functions calling each other made it work much better.
...Cmon now, seriously... you think having a function call itself is efficient? | |
|
| |
TanK_OwneR Apprentice Sage
Number of posts : 718 Registration date : 2008-05-26 Age : 31 Location : The Shadows
Your Character Level: 1 Primary Move: Flying Face Pwn
| Subject: Re: Frusteration Mon Sep 15, 2008 7:00 pm | |
| omfg pyth is the greatest person in the world!! he made a code think!!! | |
|
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 7:03 pm | |
| i think sin is getting jelous whenever i hear him post anymore its something againts pyth's coding or rhys' ideas.. its kinda comical |
|
| |
TanK_OwneR Apprentice Sage
Number of posts : 718 Registration date : 2008-05-26 Age : 31 Location : The Shadows
Your Character Level: 1 Primary Move: Flying Face Pwn
| |
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 7:06 pm | |
| thats what he wants you to think O.o |
|
| |
TanK_OwneR Apprentice Sage
Number of posts : 718 Registration date : 2008-05-26 Age : 31 Location : The Shadows
Your Character Level: 1 Primary Move: Flying Face Pwn
| Subject: Re: Frusteration Mon Sep 15, 2008 7:08 pm | |
| no thats what you want me to want him to think | |
|
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 7:12 pm | |
| no he planned this.. he knew id bring this up and youd think i was just trying to get you to think thats what he wants you to think when realy its what he wanted you to think.. |
|
| |
TanK_OwneR Apprentice Sage
Number of posts : 718 Registration date : 2008-05-26 Age : 31 Location : The Shadows
Your Character Level: 1 Primary Move: Flying Face Pwn
| Subject: Re: Frusteration Mon Sep 15, 2008 7:16 pm | |
| thats what you want me to want you to what me to want him to think ---------------(^ that hurt^) | |
|
| |
Guest Guest
| Subject: Re: Frusteration Mon Sep 15, 2008 7:22 pm | |
| lmao... the whole point is he wants you to think hes not jelous when he really is aching inside of jelousy.. |
|
| |
Sponsored content
| Subject: Re: Frusteration | |
| |
|
| |
| Frusteration | |
|