Action:
|
Creates a cubic law given {a,b,f(a),f(b),f'(a),f'(b)}.
|
|
Prototype:
|
outcome api_make_cubic (
|
|
|
double aval,
|
// a value
|
|
|
double bval,
|
// b value
|
|
|
double faval,
|
// f at a
|
|
|
double fbval,
|
// f at b
|
|
|
double ffaval,
|
// deriv of f at a
|
|
|
double ffbval,
|
// deriv of f at b
|
|
|
law*& answer
|
// ptr to law
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/kernapi/api/api.hxx"
|
|
#include "kernel/kernapi/api/kernapi.hxx"
|
|
#include "lawutil/law_base.hxx"
|
|
Description:
|
Produces a cubic polynomial with given boundary conditions for both it and its first derivative. The user supplies the boundary values
a and
b, the desired output of the law at
a and
b (e.g.,
f_a and
f_b), and the desired output of the first derivative at
a and
b (e.g.,
df_a and
df_b). The result is a cubic polynomial meeting these boundary conditions.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/kernapi/api/kernapi.hxx
|
|
Effect:
|
Changes model
|