Skip to main content
14-Alexandrite
July 9, 2026
Solved

Make tables use vector or ranges as aguments

  • July 9, 2026
  • 7 replies
  • 76 views

Hi community,

I’m coping a program to make tables but get errors?

What's wrong?

Regards,

CarlosRomero

 

PD. This routine can be used with either vectors or your beloved ranges as arguments. First we create a function which tables a function with three arguments, so that the result is a nested array consisting of a vector of matrizes. Ever of those matrices shows the function values whith constant third argument z and x as rows and y as columns.

Best answer by terryhendicott

A multiplication sign is needed between u and (1+a) as Prime thinks it is a function call not a multiplication.

 

7 replies

21-Topaz II
July 9, 2026

A multiplication sign is needed between u and (1+a) as Prime thinks it is a function call not a multiplication.

 

ttokoro
21-Topaz I
July 9, 2026

Need vec function for all ranges if you use Prime 12 or 11.

t.t.
25-Diamond I
July 9, 2026

Need vec function for all ranges if you use Prime 12 or 11.

 

I don’t think that using the “vec” function is needed.  The “for x in xrange..” loop should work OK no matter if xrange is a range or a vector.

As Terry already wrote is the problem the missing multiplication between µ and the opening parenthesis.

14-Alexandrite
July 9, 2026

…..loop should work OK no matter if xrange is a range or a vector.

Werner, does the routine work for ranges too?

Terry says no

Regards,

CarlosRomero

21-Topaz II
July 9, 2026

Works with vectors not ranges?

14-Alexandrite
July 9, 2026

Thanks, Terry.

I didn't notice that detail.
Regards,
Carlos Romero