Prime: Quick and Dirty AXL



#2

Here is an attempt to duplicate the AXL utility (which I find helpful in the 50G); alas, I can't get it work with symbolic elements in either vectors or lists - - but it works with integers, reals, and complex values as elements in both HOME and CAS.

No doubt it can be optimized.

EXPORT AXL(r)
BEGIN
LOCAL b, n, j;
SIZE(r)->n;

IF TYPE(r)==4 THEN
b:={};
FOR j FROM 1 TO n(1) DO
CONCAT(b,r(j))->b;
END;

ELSE

IF TYPE(r)==6 THEN
MAKEMAT(0,n)->b;
FOR j FROM 1 TO n DO
r(j)->b(1,j);
END;

ELSE
RETURN "Error: Not list or vector";
END;

END;
b;
END;


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP PRIME CAS QUICK GUIDE [SPN] CompSystems 0 984 08-26-2013, 01:15 PM
Last Post: CompSystems
  is there a printing error in the HP 50G Quick Starrt Guide? Al 12 3,068 11-23-2012, 07:07 PM
Last Post: Al
  I Feel a Little Dirty Norman Dziedzic 18 4,671 08-08-2012, 07:32 AM
Last Post: Norman Dziedzic
  Qama calculator, quick review Don Shepherd 16 3,831 05-08-2012, 08:45 AM
Last Post: uhmgawa
  Updated list of ROM images in the 41CL - help needed with links to quick reference guides for any! Gene Wright 1 962 06-02-2011, 07:20 PM
Last Post: Geir Isene
  Forced to buy a TI-89 for school....I feel dirty Jimi 23 4,896 09-02-2010, 08:16 AM
Last Post: Dave Britten
  In praise of dirty calculators-- again. Michael Meyer 34 7,956 02-15-2010, 07:54 PM
Last Post: Joerg Woerner
  In Praise of Dirty Calculators Michael Meyer 2 1,197 11-30-2009, 11:45 PM
Last Post: Vieira, Luiz C. (Brazil)
  Dirty 31E Hal Bitton in Boise 0 811 03-15-2009, 10:31 AM
Last Post: Hal Bitton in Boise
  x49gp (aka 50g with ARM emulation) Quick Start Guide Egan Ford 0 951 12-14-2008, 04:49 PM
Last Post: Egan Ford

Forum Jump: