Skip to content

Instantly share code, notes, and snippets.

Robin Christ robinchrist

Block or report user

Report or block robinchrist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View waveformer2.lng
Model:
MAX = @SQRT(((a^2)*(lphi^2))-a^4)/lphi; !Constraint: This is the b value of our ellipse, it shall be maximized;
@BND(0.01, lphi, 99000);
b = @SQRT(((a^2)*(lphi^2))-(a^4))/lphi;
@BND(0.01, c, 99000);
lphi = 2*(a^2/c);
rmax = 2*(t + ellipsepart);
distdirectrixfocus = lphi/2 - c;
heightatfocuspoint = b^2/a;
t = @sqrt((distdirectrixfocus)^2+(heightatfocuspoint)^2);
@robinchrist
robinchrist / waveformer.lng
Last active Jun 28, 2017
Lingo Model for Hughes Waveformer
View waveformer.lng
MODEL:
MAX = @SQRT( @SQR(a) - ( (4*@SQR(a))/(@SQR(lphi)) ) ); !Constraint: This is the b value of our ellipse, it shall be maximized;
b = @SQRT( @SQR(a) - ( (4*@SQR(a))/(@SQR(lphi)) ) );
a > b;
phiheight < hexit/2; !This only makes sense when we are not at the top of the inner core, because at the top we have a straight line!;
View benchmark.cpp
#include <iostream>
#include <memory>
#include <chrono>
#include <thread>
struct StatusResponse {
You can’t perform that action at this time.