ahh, i see now, ill have to make some crappy messy superscopes to find out what i can do with it now. 🙂
heh, the sig text is mine, ALL MINE HAHAHAHAHAAAAAA... 😞
AVS Primer - now hiring.
65 posts
Hey I figured out what a sigmoid is!
A sigmoid is a S-shaped part of the colon! Sorry it's not in math terms, I just thought it was interesting 😛
A sigmoid is a S-shaped part of the colon! Sorry it's not in math terms, I just thought it was interesting 😛
Seriously... what the hell does that sigmoid function do??? Is it meant to be a summation or something?
It's a function used to create values that are all in the range of -1 to 1, i don't really know how its done, but it's graph looks like an S with points (-infinity,-1),(0,0),(infinity,1). I haven't had much use for it except for messing with the default DDM stuff.
Sigmoid(x,y) is a fast way to calculate 1/(1+exp(-x*y)).
I have no idea why would anyone want to do that or how can it be used in avs.
I have no idea why would anyone want to do that or how can it be used in avs.
Originally posted by jherikoAhem. 😉
mspaint...can not save to .jpg
The sigmoid in AVS maps (0,1) to (-infinity,infinity), such that f(.5) = 0.
Although I would have made a function that maps 0=0, and -1 to -infinity, I'm also a person who created a system of working with undefined values 🧟.
Although I would have made a function that maps 0=0, and -1 to -infinity, I'm also a person who created a system of working with undefined values 🧟.
SIGMOID can be used for extra-smooth on-beat transitions.
But how the fuck did it get it's name...?!
But how the fuck did it get it's name...?!
Here we go:
[link]
[link]
Thanks, Anubis. I just kept thinking of the sigmoid colon and...it kinda freaked me out 😛
Originally posted by uNDefineDOkay, the shit version of mspaint that comes with win2kas. you would think you would get mspaint advanced with it....
Ahem. 😉
Why use mspaint??? Just use Adobe Photoshop, CorelDraw, or Jasc Paint Shop Pro 7.
I looked at my math book and found proof for:
sin(a+b) = sin(a) * cos(b) + cos(a) * sin(b);
I prought it up to know if i am correct and for just showing U all another way for this proof.
---------------------------------------------------------------------
proof that sin(a+b)=sin(a)*cos(b)+cos(a)*sin(b):
a > 0 , b > 0, a + b < pi / 2
U can easily see that:
AEC ~ OCD (if U dont think so then think little 😛)
sin(a+b) = AB/OA = (AE+EB)/OA = AE/OA + EB/OA
as AE = AC * cos(a) and EB = CD = OC * sin(a)
then sin(a+b) = (AC * cos(a))/OA + (OC * sin(a))/OA
as AC/OA = sin(b) and OC/OA = sin(a)
then we get that
sin(a+b) = sin(a)*cos(b)+cos(a)*sin(b)
---------------------------------------------------------------------
That was too deam simple 🙄 , too simple
Was I correct, comments are welcom 😁
sin(a+b) = sin(a) * cos(b) + cos(a) * sin(b);
I prought it up to know if i am correct and for just showing U all another way for this proof.
---------------------------------------------------------------------
proof that sin(a+b)=sin(a)*cos(b)+cos(a)*sin(b):
a > 0 , b > 0, a + b < pi / 2
U can easily see that:
AEC ~ OCD (if U dont think so then think little 😛)
sin(a+b) = AB/OA = (AE+EB)/OA = AE/OA + EB/OA
as AE = AC * cos(a) and EB = CD = OC * sin(a)
then sin(a+b) = (AC * cos(a))/OA + (OC * sin(a))/OA
as AC/OA = sin(b) and OC/OA = sin(a)
then we get that
sin(a+b) = sin(a)*cos(b)+cos(a)*sin(b)
---------------------------------------------------------------------
That was too deam simple 🙄 , too simple
Was I correct, comments are welcom 😁
I chouldnt shange the attachment
heres new one
heres new one
Yeah...you're first of all being vague, and if that diagram is correct you're completely wrong from the first step. AEC is a right angle, OEC is obtuse. And when you're trying to prove something, never ever ever make assumptions like "that a equals b, thus c must obviously equal d (if you don't think so think a little)"
<edit> Forgot to mention, I already have a working proof for this, so...don't bother 🙂 </edit>
<edit> Forgot to mention, I already have a working proof for this, so...don't bother 🙂 </edit>
Oh... U miss understood me...
By the AEC I mean triangle with points A , E and C and by the AEC ~ OCD i ment that the triangle AEC resembles with triangle OCD.
And to proof that AEC ~ OCD ( AEC/OCD=k ) is simple but it would be too dificult (for me) to write it in english...
I dunno whats ur thinkin but this proof IS correct! 😛
BTW this proof is most easyest too (well, atleast for me).
Do u understand me now?
EDIT
By the AE i mean straight line petween points A and E
By the AEC I mean triangle with points A , E and C and by the AEC ~ OCD i ment that the triangle AEC resembles with triangle OCD.
And to proof that AEC ~ OCD ( AEC/OCD=k ) is simple but it would be too dificult (for me) to write it in english...
I dunno whats ur thinkin but this proof IS correct! 😛
BTW this proof is most easyest too (well, atleast for me).
Do u understand me now?
EDIT
By the AE i mean straight line petween points A and E
You should have at least put the points in the same order(ACE~OCD).
Sorry about that... 😔
Is this hole proof undrstandeble, correct?
Is this hole proof undrstandeble, correct?
I don't really understand it, but I hate proofs and don't really feel like taking the time to understand it.
Atero, can I see what proof you used?
Atero, can I see what proof you used?
it's up there...in about ten posts (jheriko's proof)
Atero is right, the similarity of OCD and AEC is not immediately obvious, you should really prove that. In the proof which I gave I (tryed) to explain why two of the triangles were similar (have the same angles) because similarity is often quite difficult to 'spot' unless one triangle is contained within the other like this:
I don't really think that this discussion is likely to benefit the AVS primer. What may be beneficial is a list of trig identities. All of the trig identities that I listed in the 'AVS Tips & Tricks' thread (or whatever it was called) can be proved very easily if you define sin x and cos x by their power series rather than geometrically (it can be shown that both definitions are identical). This can be done by 'plugging in' the values.
e.g.
sin(a+b)=sum((-1^n)(a+b)^(2n+1)/(2n+1)!)
If you do this for both sides of any trig identity you can rearrange (often very easily) to show that they are equal. The only restriction is that you must except the power series as the definitions of sin and cos in order for this method to be a proof. There is nothing wrong with that though, I have a geometry textbook (Elementary Geometry - Oxford Press) in which the power series are used as the definitions of the functions.
The triangle with area A is similar to the triangle with area A+B.
/|
/ |
/ |
/| |
/ | |
/ A| B|
/___|__|
I don't really think that this discussion is likely to benefit the AVS primer. What may be beneficial is a list of trig identities. All of the trig identities that I listed in the 'AVS Tips & Tricks' thread (or whatever it was called) can be proved very easily if you define sin x and cos x by their power series rather than geometrically (it can be shown that both definitions are identical). This can be done by 'plugging in' the values.
e.g.
sin(a+b)=sum((-1^n)(a+b)^(2n+1)/(2n+1)!)
If you do this for both sides of any trig identity you can rearrange (often very easily) to show that they are equal. The only restriction is that you must except the power series as the definitions of sin and cos in order for this method to be a proof. There is nothing wrong with that though, I have a geometry textbook (Elementary Geometry - Oxford Press) in which the power series are used as the definitions of the functions.
OK...
I didnt understand this thing myself very well, now I do.
We must make triangle ACE ovious with OCD!:
The (a') of ACE must be equal with (a) of OCD, then the angle AEC must be 90 degrees (pi/2 rad) and we know that angle ODC is 90 degrees too, then we get that ACE is ovious wuth OCD and we can proceed with our proof.
As soon as I get little time I will make better drawing.
I didnt understand this thing myself very well, now I do.
We must make triangle ACE ovious with OCD!:
The (a') of ACE must be equal with (a) of OCD, then the angle AEC must be 90 degrees (pi/2 rad) and we know that angle ODC is 90 degrees too, then we get that ACE is ovious wuth OCD and we can proceed with our proof.
As soon as I get little time I will make better drawing.
jack, you're missing the point...that problem has been solved (read: MOVE ON)
Oh! Well ok, but still here is the better drawing.
POWER
My computa power supply exploded, I'm on my mum's computa now.
I wanted to look up that question I posted, thanks Unconed for the hexplanation.. So you can use the same variable twice with the "if" command and the subject matter in the bracktes determinez what will effect it, correct? The multiple variable thing you mentioned is something that your aware of that write's over exsiting variables later on ???---> that I'm not sure about yet. Sheesh I wish I had my puta working so I could post some hexamples.... The thing is I'm going through code trying to deconstruct it and find how the different variables interact and bang! I came across two the same and It stumped me. not just 2 "x" for instance but other defined variables such as "x1"'s or whateva. I cant check to see if they were "if" commands at the moment tho (damn it). that does make a bit of sence 4 me Unconed thanks.
The thing is that I've seen Avs do some weird shit before like at the end of a line of code if you take off the last bracket it reacts with the actual code differently rather than just ignoring it. I'm not talking about multiple brackets but having and open end on it.
ie. whatever=da+(da,da,da,da, ... ; no end bracket. ( the whatever's and the da's are whatever. Dont think about asking silly questions about my ie. It still reacts with the different da's in the line of code from testing it but it does something totaly different when you put the last bracket in too. Bug?
Mabey this has something to do with the overwriting thing you were talking about UnconeD???
Oh yeh !
Atero?? 🤪
🙂
N E Ways i see it's a bit late but I just had two cents so I thought I'd spend it.
I cant wait to get my puta going again. I left if for a week. Should try not switching your computer on for at least a whole week It's a bit of a culture shock !!Especially when housmates are LANing and you decide to go for a skate instead.. Such an interesting life >>><<<.
My computa power supply exploded, I'm on my mum's computa now.
I wanted to look up that question I posted, thanks Unconed for the hexplanation.. So you can use the same variable twice with the "if" command and the subject matter in the bracktes determinez what will effect it, correct? The multiple variable thing you mentioned is something that your aware of that write's over exsiting variables later on ???---> that I'm not sure about yet. Sheesh I wish I had my puta working so I could post some hexamples.... The thing is I'm going through code trying to deconstruct it and find how the different variables interact and bang! I came across two the same and It stumped me. not just 2 "x" for instance but other defined variables such as "x1"'s or whateva. I cant check to see if they were "if" commands at the moment tho (damn it). that does make a bit of sence 4 me Unconed thanks.
The thing is that I've seen Avs do some weird shit before like at the end of a line of code if you take off the last bracket it reacts with the actual code differently rather than just ignoring it. I'm not talking about multiple brackets but having and open end on it.
ie. whatever=da+(da,da,da,da, ... ; no end bracket. ( the whatever's and the da's are whatever. Dont think about asking silly questions about my ie. It still reacts with the different da's in the line of code from testing it but it does something totaly different when you put the last bracket in too. Bug?
Mabey this has something to do with the overwriting thing you were talking about UnconeD???
Oh yeh !
Atero?? 🤪
either this is the wrong thread, or you're being a total idiot, visag.What the !! I was asking a ligit question that I thought you might be able to use in your primer as the title of this thread suggests.😕 (havin' a bad day mabey ??)
oh, okay, i see that now - i thought you were talking about a different triangle (once again, you didn't specify explicitly).once again, you didn't specify explicitly who you're talking to, I guess it was us. I thought it might have been odvious that it wasn't a question about trig (wrong thread????)😉 what triangles have two of the same x variables ... WHAT! I dont know how anyone could go down that train of thought even someone as obscure as me.. hahaha
🙂
N E Ways i see it's a bit late but I just had two cents so I thought I'd spend it.
I cant wait to get my puta going again. I left if for a week. Should try not switching your computer on for at least a whole week It's a bit of a culture shock !!Especially when housmates are LANing and you decide to go for a skate instead.. Such an interesting life >>><<<.
Here's a general example of multiple x's(there are other ways to use it, though):
x=if(<condition1>,x1,x);
x=if(<condition2>,x2,x);
...
x=if(<conditionN>,xN,x);
If you had a counter variable that increments each pixel and is reset to 0 each frame(lets call it q) then you could use:
x=if(equal(q,1),x1,x);
x=if(equal(q,2),x2,x);
...
x=if(equal(q,N),xN,x);
This will set x to a specified value for each pixel(i.e. a square can be made using ±.5 for x and y in this way - x1=x4=-.5, x2=x3=.5, y1=y2=-.5, y3=y4=.5).
x=if(<condition1>,x1,x);
x=if(<condition2>,x2,x);
...
x=if(<conditionN>,xN,x);
If you had a counter variable that increments each pixel and is reset to 0 each frame(lets call it q) then you could use:
x=if(equal(q,1),x1,x);
x=if(equal(q,2),x2,x);
...
x=if(equal(q,N),xN,x);
This will set x to a specified value for each pixel(i.e. a square can be made using ±.5 for x and y in this way - x1=x4=-.5, x2=x3=.5, y1=y2=-.5, y3=y4=.5).
Originally posted by VisAg:x1, x2, y1, and y2 are often also used with 3D equations in order to simplify the rotation matrices.
I came across two the same and It stumped me. not just 2 "x" for instance but other defined variables such as "x1"'s or whateva.
Originally posted by VisAg:This happens, because sometimes the SSC, or DM will work without needing the entire box of code (i.e. per beat stuff). Also, I believe stuff before it will still be executed, but I'm not sure. The preset can continue to do things, but it may not do what is meant if some parts are left out. For example, if you take out a parenthesis in the init box, the SSC may continue running properly, because it may not effect anything per frame or per pixel, which is where all of the magic happens.
The thing is that I've seen Avs do some weird shit before like at the end of a line of code if you take off the last bracket it reacts with the actual code differently rather than just ignoring it. I'm not talking about multiple brackets but having and open end on it.
gah, how come every time i start a thread it goes completely off the track of trying to get a problem solved? what's worse is anubis always seems to be a part of that...
This stuff is at least useful, and could be used in your Primer(I was talking about 3-D transforms, etc.). And anyways, VisAg asked the question.
Did I not help VisAg get a problem solved(or at least try)???
Did I not help VisAg get a problem solved(or at least try)???
here is another example of recycling the same variable:
z=0.5*z;
alpha=0.5-z;
z=1/(z+2);
x=x*z;
y=y*z;
red=alpha;
blue=alpha;
green=alpha;
This sort of thing gets done a lot (though not necessarily for this purpose). Here I've reused z to optimise the code a bit.
z=0.5*z;
alpha=0.5-z;
z=1/(z+2);
x=x*z;
y=y*z;
red=alpha;
blue=alpha;
green=alpha;
This sort of thing gets done a lot (though not necessarily for this purpose). Here I've reused z to optimise the code a bit.
Okay, there's still a lot of things I'd like to know. Here's an updated list:
RENDER
-Dot Fountain
--What are the cyan, brown, green, and blue particles at the very bottom? To see these just play some music amped up so it's overdriving really bad. I'm going to assume that it's low-volume EHF, and am going to put that in AVSP2, but please correct me if I'm wrong.
-Simple
--What bands are drawn in the spectrum analyzer? I think it's 1-288, but I'm not sure.
-Text
--A fix for the additive blend bug, and any way to fix (internally) the text object filling the whole screen, instead of the portion taken up by the actual text (anyone know what I'm talking about?)
-Superscope
--The limit on the number of variables, or if it's a variable limit (on the variables, that is)...I'd figure it out myself but I've got enough other things to do ATM that I can't be arsed with it....
TRANS
-Brightness
--What's that bug with 50/50 blend where it doesn't quite work for positive brightness, and is there a way to fix it (other than not using 50/50 blend)?
*Colorfade
--An exact description of what those bars actually do.
--What do "on-beat change" and "on-beat randomize" actually do? When you turn "on-beat change" on it'll screw up the colorfading off of the beat. I'm asking about "on-beat randomize" because I'm not sure if it works permanently or for a short time...another one of those "I'm too damn lazy" things 😛
-Grain
--Why, when "static grain" is enabled, the slidebar only changes the grain when it's under the 4th hash mark. To see this, use a white Clear Screen and use grain with static grain enabled - then slide the bar down and watch nothing happen.
-Interferences
--Why, when you turn "additive blend" on, it only works for the top 12th or so of the screen. Note I said 12th - it changes with the screen size, and is always an exact number of lines (no partial lines at the bottom). Very odd indeed.
MISC
-Custom BPM
--What the First Skip slidebar does
--When the first beat is registered in skip mode
OTHER
*A true proof of the px=tx/tz:😛y=ty/tz 2D-3D translation (px=percieved 2D x-coordinate, tx=true 3D x-coordinate, etc.)
Thanx in advance, guys.
RENDER
-Dot Fountain
--What are the cyan, brown, green, and blue particles at the very bottom? To see these just play some music amped up so it's overdriving really bad. I'm going to assume that it's low-volume EHF, and am going to put that in AVSP2, but please correct me if I'm wrong.
-Simple
--What bands are drawn in the spectrum analyzer? I think it's 1-288, but I'm not sure.
-Text
--A fix for the additive blend bug, and any way to fix (internally) the text object filling the whole screen, instead of the portion taken up by the actual text (anyone know what I'm talking about?)
-Superscope
--The limit on the number of variables, or if it's a variable limit (on the variables, that is)...I'd figure it out myself but I've got enough other things to do ATM that I can't be arsed with it....
TRANS
-Brightness
--What's that bug with 50/50 blend where it doesn't quite work for positive brightness, and is there a way to fix it (other than not using 50/50 blend)?
*Colorfade
--An exact description of what those bars actually do.
--What do "on-beat change" and "on-beat randomize" actually do? When you turn "on-beat change" on it'll screw up the colorfading off of the beat. I'm asking about "on-beat randomize" because I'm not sure if it works permanently or for a short time...another one of those "I'm too damn lazy" things 😛
-Grain
--Why, when "static grain" is enabled, the slidebar only changes the grain when it's under the 4th hash mark. To see this, use a white Clear Screen and use grain with static grain enabled - then slide the bar down and watch nothing happen.
-Interferences
--Why, when you turn "additive blend" on, it only works for the top 12th or so of the screen. Note I said 12th - it changes with the screen size, and is always an exact number of lines (no partial lines at the bottom). Very odd indeed.
MISC
-Custom BPM
--What the First Skip slidebar does
--When the first beat is registered in skip mode
OTHER
*A true proof of the px=tx/tz:😛y=ty/tz 2D-3D translation (px=percieved 2D x-coordinate, tx=true 3D x-coordinate, etc.)
Thanx in advance, guys.