Code covered by the BSD License  

Highlights from
GTL jetfuel_ternplot with neural network

image thumbnail

GTL jetfuel_ternplot with neural network

by

 

This is an upgrade of the ternplot code written by Carl Sandrock (ID#2299).

terncoords(fA, fB, fC)

function [x, y] = terncoords(fA, fB, fC)
if nargin < 3
    fC = 1 - (fA + fB);
end

y = fB*sin(deg2rad(60));
x = (1+fA-fC)/2;

%x = (1+(fA+y*cot(deg2rad(60)))-(fC+y*cot(deg2rad(60))))/2;  
%x=((fA+(1-fB-fC))/2)+ y*cot(deg2rad(60));
%x=fA+y*cot(deg2rad(60))=1-fC+y*cot(deg2rad(60))

Contact us