![DropDown image](dropdown.gif)
![DropDownHover image](dropdownHover.gif)
![Collapse image](collapse_all.gif)
![Expand image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
function DotProduct(a,b){
return a.x*b.x + a.y*b.y;
}
function Scale(a, s){
return [x->a.x*s, y->a.y*s];
}
Test.AreEqual(19, DotProduct([x->1, y->3], [x->4, y->5]));
Test.AreEqual(5.1, Scale([x->0.51, y->3], 10).x);
function DotProduct(a,b){
return a.x*b.x + a.y*b.y;
}
function Scale(a, s){
return [x->a.x*s, y->a.y*s];
}
Test.AreEqual(19, DotProduct([x->1, y->3], [x->4, y->5]));
Test.AreEqual(5.1, Scale([x->0.51, y->3], 10).x);