The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Program help needed
11-22-2014, 01:36 PM
Post: #1
Program help needed
Here's a shortened program construct that involves a CAS command:

Code:
EXPORT aa()
BEGIN
local x,y;
return grad(x^2-3*x*y^3,{x,y});
END;

Naturally, in CAS view grad(x^2-3*x*y^3,{x,y}); returns the desired output. (The program auto-initializes the variables to 0, resulting in non-sense at run time).

Changing to CAS.grad(x^2-3*x*y^3,{x,y}); doesn't work, either. A CAS program works, but this example is a fragment of a larger work, for which I would like to use the conn kit's program editor.

Two questions:

1. Can the above program be constructed to return the {x,y} result? --> [-3*y^3+2*x,-9*x*y^2]

2. I have read several posts describing CAS programming, but context is mostly dated around February 2014. With revisions, changes seem to have made creating a function: f(x):=anything, no longer show up in the [shift] [program] list, so cannot be edited therein. Is there another way to get CAS programs into the program editor?

Help appreciated!

-Dale-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Program help needed - DrD - 11-22-2014 01:36 PM
RE: Program help needed - Han - 11-22-2014, 01:44 PM
RE: Program help needed - DrD - 11-22-2014, 03:53 PM
RE: Program help needed - Han - 11-22-2014, 06:04 PM
RE: Program help needed - DrD - 11-22-2014, 08:34 PM
RE: Program help needed - Han - 11-22-2014, 09:02 PM
RE: Program help needed - DrD - 11-22-2014, 11:29 PM
RE: Program help needed - Han - 11-23-2014, 12:50 AM
RE: Program help needed - DrD - 11-23-2014, 03:25 PM
RE: Program help needed - Han - 11-23-2014, 05:32 PM
RE: Program help needed - DrD - 11-24-2014, 12:07 PM
RE: Program help needed - Han - 11-24-2014, 01:43 PM



User(s) browsing this thread: 3 Guest(s)