mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
262 B
D
19 lines
262 B
D
// PERMUTE_ARGS:
|
|
// REQUIRED_ARGS: -O
|
|
|
|
void main()
|
|
{
|
|
}
|
|
|
|
struct Line
|
|
{
|
|
double slope;
|
|
double intercept;
|
|
}
|
|
|
|
Line nLineProjection(double[] historicData)
|
|
{
|
|
Line projLine;
|
|
projLine.intercept = historicData[$-1] + projLine.slope;
|
|
return projLine;
|
|
}
|