Matlib

MCG
Posts: 2
Joined: Thu May 30, 2019 1:59 am
My devices: iPad Pro 12.9

Re: Matlib

Post 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.

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Matlib

Post by Henko »

Hi,
Can you post the calling program? And which (date) version did you download?

Henko
Posts: 814
Joined: Tue Apr 09, 2013 12:23 pm
My devices: iPhone,iPad
Windows
Location: Groningen, Netherlands
Flag: Netherlands

Re: Matlib

Post 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}

Post Reply