File: bessel.c

package info (click to toggle)
euslisp 9.27%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 55,344 kB
  • sloc: ansic: 41,162; lisp: 3,339; makefile: 256; sh: 208; asm: 138; python: 53
file content (20 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <math.h>
#include "eus.h"

extern double jn(), yn();

pointer BESSEL(ctx,n,argv)
int n;
pointer argv[];
{ int i=ckintval(argv[0]);
  numunion nu;
  float f = ckfltval(argv[1]);
  ckarg(2);
  f=jn(i,f);
  return(makeflt(f));}

bessel(ctx,n,argv,env)
context *ctx;
int n;
pointer argv[], *env;
{ defun(ctx, "BESSEL", argv[0], BESSEL,NULL);}