26 #if defined (HAVE_CONFIG_H)
43 DEFUN (colloc, args, ,
52 int nargin = args.length ();
54 if (nargin < 1 || nargin > 3)
57 if (! args(0).is_scalar_type ())
58 error (
"colloc: N must be a scalar");
60 double tmp = args(0).double_value ();
62 error (
"colloc: N cannot be NaN");
66 error (
"colloc: N must be positive");
72 for (
int i = 1; i < nargin; i++)
74 std::string s = args(i).xstring_value (
"colloc: optional arguments must be strings");
78 if (s ==
"r" || s ==
"right")
80 else if (s ==
"l" || s ==
"left")
83 error (R
"(colloc: string argument must be "left" or "right")");
88 error (R
"("colloc: the total number of roots (N + "left" + "right") must be >= 1)");
ColumnVector quad_weights(void)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
ColumnVector transform(const Matrix &m, double x, double y, double z)
F77_RET_T const F77_INT F77_CMPLX const F77_INT F77_CMPLX * B
F77_RET_T const F77_INT F77_CMPLX * A
octave_idx_type nint_big(double x)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.