26 #if defined (HAVE_CONFIG_H)
41 DEFUN (colloc, args, ,
50 int nargin = args.length ();
52 if (nargin < 1 || nargin > 3)
55 if (! args(0).is_scalar_type ())
56 error (
"colloc: N must be a scalar");
58 double tmp = args(0).double_value ();
60 error (
"colloc: N cannot be NaN");
64 error (
"colloc: N must be positive");
70 for (
int i = 1; i < nargin; i++)
72 std::string s = args(i).xstring_value (
"colloc: optional arguments must be strings");
76 if (s ==
"r" || s ==
"right")
78 else if (s ==
"l" || s ==
"left")
81 error (R
"(colloc: string argument must be "left" or "right")");
86 error (R
"("colloc: the total number of roots (N + "left" + "right") must be >= 1)");
ColumnVector quad_weights(void)
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.