Skip to main content
14-Alexandrite
Jul 9, 2026 4:14 AM UTC
Solved

Make tables use vector or ranges as aguments

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.

terryhendicott
21-Topaz II
Jul 9, 2026 5:54 AM UTC

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

 

7 replies

terryhendicott
21-Topaz II
Jul 9, 2026 5:54 AM UTC

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

 

Translate
ttokoro
21-Topaz I
Jul 9, 2026 7:10 AM UTC

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

Translate
t.t.
Werner_E
25-Diamond I
Jul 9, 2026 7:47 AM UTC

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.

Translate
14-Alexandrite
Jul 9, 2026 11:06 AM UTC

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

Translate
terryhendicott
21-Topaz II
Jul 9, 2026 7:54 AM UTC

Works with vectors not ranges?

Translate
14-Alexandrite
Jul 9, 2026 10:39 AM UTC

Thanks, Terry.

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

Translate