comparison src/builtins.cc @ 272:7ec58832918f

[project @ 1994-01-06 18:54:08 by jwe]
author jwe
date Thu, 06 Jan 1994 18:54:08 +0000
parents a99f28f5e351
children a419f80fc9a8
comparison
equal deleted inserted replaced
271:64b486b19ce4 272:7ec58832918f
260 \n\ 260 \n\
261 res = f (x, xdot, t)\n\ 261 res = f (x, xdot, t)\n\
262 \n\ 262 \n\
263 where x, xdot, and res are vectors, and t is a scalar.", }, 263 where x, xdot, and res are vectors, and t is a scalar.", },
264 264
265 { "dassl_options", -1, 1, builtin_dassl_options,
266 "dassl_options (keyword, value): set or show options for dassl", },
267
265 { "date", 1, 0, builtin_date, 268 { "date", 1, 0, builtin_date,
266 "date (): return current date in a string", }, 269 "date (): return current date in a string", },
267 270
268 { "det", 2, 1, builtin_det, 271 { "det", 2, 1, builtin_det,
269 "det (X): determinant of a square matrix", }, 272 "det (X): determinant of a square matrix", },
352 \n\ 355 \n\
353 y = f (x) 356 y = f (x)
354 \n\ 357 \n\
355 where y and x are vectors.", }, 358 where y and x are vectors.", },
356 359
360 { "fsolve_options", -1, 1, builtin_fsolve_options,
361 "fsolve_options (keyword, value): set or show options for fsolve", },
362
357 { "fsqp", 11, 3, builtin_fsqp, 363 { "fsqp", 11, 3, builtin_fsqp,
358 #if defined (FSQP_MISSING) 364 #if defined (FSQP_MISSING)
359 "This function requires FSQP, which is not freely\n\ 365 "This function requires FSQP, which is not freely\n\
360 redistributable. For more information, read the file\n\ 366 redistributable. For more information, read the file\n\
361 libcruft/fsqp/README.MISSING in the source distribution.", }, 367 libcruft/fsqp/README.MISSING in the source distribution.", },
363 "[x, phi] = fsqp (x, \"phi\" [, lb, ub] [, lb, A, ub] [, lb, \"g\", ub])\n\n\ 369 "[x, phi] = fsqp (x, \"phi\" [, lb, ub] [, lb, A, ub] [, lb, \"g\", ub])\n\n\
364 Groups of arguments surrounded in `[]' are optional, but\n\ 370 Groups of arguments surrounded in `[]' are optional, but\n\
365 must appear in the same relative order shown above.", }, 371 must appear in the same relative order shown above.", },
366 #endif 372 #endif
367 373
374 { "fsqp_options", -1, 1, builtin_fsqp_options,
375 "fsqp_options (keyword, value): set or show options for fsqp", },
376
368 { "ftell", 2, 1, builtin_ftell, 377 { "ftell", 2, 1, builtin_ftell,
369 "position = ftell (\"filename\" or filenum): returns the current file position", }, 378 "position = ftell (\"filename\" or filenum): returns the current file position", },
370 379
371 { "getenv", 2, 1, builtin_getenv, 380 { "getenv", 2, 1, builtin_getenv,
372 "getenv (\"string\"): get environment variable values", }, 381 "getenv (\"string\"): get environment variable values", },
408 "logm (x): matrix logarithm", }, 417 "logm (x): matrix logarithm", },
409 418
410 { "lp_solve", 11, 3, builtin_lpsolve, 419 { "lp_solve", 11, 3, builtin_lpsolve,
411 "lp_solve (): solve linear programs using lp_solve.", }, 420 "lp_solve (): solve linear programs using lp_solve.", },
412 421
422 { "lp_solve_options", -1, 1, builtin_lpsolve_options,
423 "lp_solve_options (keyword, value): set or show options for lp_solve", },
424
413 { "lsode", 6, 1, builtin_lsode, 425 { "lsode", 6, 1, builtin_lsode,
414 "lsode (\"function_name\", x0, t_out, t_crit)\n\ 426 "lsode (\"function_name\", x0, t_out, t_crit)\n\
415 \n\ 427 \n\
416 The first argument is the name of the function to call to\n\ 428 The first argument is the name of the function to call to\n\
417 compute the vector of right hand sides. It must have the form\n\ 429 compute the vector of right hand sides. It must have the form\n\
418 \n\ 430 \n\
419 xdot = f (x, t)\n\ 431 xdot = f (x, t)\n\
420 \n\ 432 \n\
421 where xdot and x are vectors and t is a scalar.\n", }, 433 where xdot and x are vectors and t is a scalar.\n", },
434
435 { "lsode_options", -1, 1, builtin_lsode_options,
436 "lsode_options (keyword, value): set or show options for lsode", },
422 437
423 { "lu", 2, 3, builtin_lu, 438 { "lu", 2, 3, builtin_lu,
424 "[L, U, P] = lu (A): LU factorization", }, 439 "[L, U, P] = lu (A): LU factorization", },
425 440
426 { "max", 3, 2, builtin_max, 441 { "max", 3, 2, builtin_max,
445 y = phi (x)\n\ 460 y = phi (x)\n\
446 \n\ 461 \n\
447 where x is a vector and y is a scalar.", }, 462 where x is a vector and y is a scalar.", },
448 #endif 463 #endif
449 464
465 { "npsol_options", -1, 1, builtin_npsol_options,
466 "npsol_options (keyword, value): set or show options for npsol", },
467
450 { "ones", 3, 1, builtin_ones, 468 { "ones", 3, 1, builtin_ones,
451 "ones (n), ones (n, m), ones (x): create a matrix of all ones", }, 469 "ones (n), ones (n, m), ones (x): create a matrix of all ones", },
452 470
453 { "pause", 1, 0, builtin_pause, 471 { "pause", 1, 0, builtin_pause,
454 "pause (seconds): suspend program execution", }, 472 "pause (seconds): suspend program execution", },
475 \n\ 493 \n\
476 Groups of arguments surrounded in `[]' are optional, but\n\ 494 Groups of arguments surrounded in `[]' are optional, but\n\
477 must appear in the same relative order shown above.", }, 495 must appear in the same relative order shown above.", },
478 #endif 496 #endif
479 497
498 { "qpsol_options", -1, 1, builtin_qpsol_options,
499 "qpsol_options (keyword, value): set or show options for qpsol", },
500
480 { "qr", 2, 2, builtin_qr, 501 { "qr", 2, 2, builtin_qr,
481 "[q, r] = qr (X): form QR factorization of X", }, 502 "[q, r] = qr (X): form QR factorization of X", },
482 503
483 { "quad", 6, 3, builtin_quad, 504 { "quad", 6, 3, builtin_quad,
484 "[v, ier, nfun] = quad (\"f\", a, b [, tol] [, sing])\n\ 505 "[v, ier, nfun] = quad (\"f\", a, b [, tol] [, sing])\n\
492 \n\ 513 \n\
493 The second and third arguments are limits of integration. Either or\n\ 514 The second and third arguments are limits of integration. Either or\n\
494 both may be infinite. The optional argument tol specifies the desired\n\ 515 both may be infinite. The optional argument tol specifies the desired\n\
495 accuracy of the result. The optional argument sing is a vector of\n\ 516 accuracy of the result. The optional argument sing is a vector of\n\
496 at which the integrand is singular.\n", }, 517 at which the integrand is singular.\n", },
518
519 { "quad_options", -1, 1, builtin_quad_options,
520 "quad_options (keyword, value): set or show options for quad", },
497 521
498 { "quit", 1, 0, builtin_quit, 522 { "quit", 1, 0, builtin_quit,
499 "quit (): exit Octave gracefully", }, 523 "quit (): exit Octave gracefully", },
500 524
501 { "qzval", 3, 1, builtin_qzval, 525 { "qzval", 3, 1, builtin_qzval,