Skip to main content
deleted 4 characters in body
Source Link
user42643
user42643

JayScript, 6058 bytes

Declares an anonymous function:

function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};

Example:

var nFunct = function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};
print(nFunct(1,2,4,2,3,7));

JayScript, 60 bytes

Declares an anonymous function:

function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};

Example:

var nFunct = function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};
print(nFunct(1,2,4,2,3,7));

JayScript, 58 bytes

Declares an anonymous function:

function(a,b,c,d,e,f){return (a*(d-f)+c*(f-b)+e*(b-d))/2};

Example:

var nFunct = function(a,b,c,d,e,f){return (a*(d-f)+c*(f-b)+e*(b-d))/2};
print(nFunct(1,2,4,2,3,7));
Source Link
user42643
user42643

JayScript, 60 bytes

Declares an anonymous function:

function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};

Example:

var nFunct = function(a,b,c,d,e,f,g){return (a*(d-f)+c*(f-b)+e*(b-d))/2};
print(nFunct(1,2,4,2,3,7));