diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /Donjon/src/DETLIN.f | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Donjon/src/DETLIN.f')
| -rw-r--r-- | Donjon/src/DETLIN.f | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Donjon/src/DETLIN.f b/Donjon/src/DETLIN.f new file mode 100644 index 0000000..a326560 --- /dev/null +++ b/Donjon/src/DETLIN.f @@ -0,0 +1,25 @@ +*DECK DETLIN + SUBROUTINE DETLIN(X1,X2,Y1,Y2,BS,CS) +* +*---------------------------------------------------------------------- +*Purpose: +* Routine calculating the linear coefficient needed for a linear +* interpolation Y = BS*X + CS +* +*Author(s): +* M. Beaudet +* +*Parameters: +* X1 +* X2 +* Y1 +* Y2 +* BS +* CS +* +*---------------------------------------------------------------------- +* + BS = (Y1-Y2)/(X1-X2) + CS = Y1-BS*X1 + RETURN + END |
