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 312 08-26-2013, 01:15 PM
Last Post: CompSystems
  is there a printing error in the HP 50G Quick Starrt Guide? Al 12 1,127 11-23-2012, 07:07 PM
Last Post: Al
  I Feel a Little Dirty Norman Dziedzic 18 1,581 08-08-2012, 07:32 AM
Last Post: Norman Dziedzic
  Qama calculator, quick review Don Shepherd 16 1,342 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 315 06-02-2011, 07:20 PM
Last Post: Geir Isene
  Forced to buy a TI-89 for school....I feel dirty Jimi 23 1,629 09-02-2010, 08:16 AM
Last Post: Dave Britten
  In praise of dirty calculators-- again. Michael Meyer 34 2,749 02-15-2010, 07:54 PM
Last Post: Joerg Woerner
  In Praise of Dirty Calculators Michael Meyer 2 398 11-30-2009, 11:45 PM
Last Post: Vieira, Luiz C. (Brazil)
  Dirty 31E Hal Bitton in Boise 0 262 03-15-2009, 10:31 AM
Last Post: Hal Bitton in Boise
  x49gp (aka 50g with ARM emulation) Quick Start Guide Egan Ford 0 323 12-14-2008, 04:49 PM
Last Post: Egan Ford

Forum Jump: