Page 2 of 2

Re: Matlib

Posted: Sun Jun 09, 2019 5:50 am
by MCG
Whenever I inline this lib and run my program, it errors out on the very first function (vec_in), saying “wrong number of arguments in function ‘Y’ DEF vec_in(n,v(),x,y)”

Smart BASIC doesn’t seem to understand this function definition.

In fact, any line in this lib with the character “y” by itself gives a syntax error... as if it thinks “y” is always a function call? This happens even if I run this lib file by itself.

Re: Matlib

Posted: Sun Jun 09, 2019 10:09 pm
by Henko
Hi,
Can you post the calling program? And which (date) version did you download?

Re: Matlib

Posted: Sun Jun 09, 2019 10:28 pm
by Henko
This works normal

Code: Select all

option base 1
graphics ! graphics clear .8,.8,.8
dim a(10)
vec_in(3,a,100,100)
text
for i=1 to 3 ! print a(i) ! next i
end

{matlib}