concatenation of prefixes with units and some problems
04-11-2017, 02:31 AM (This post was last modified: 04-11-2017 01:31 PM by compsystems.)
Post: #4
 compsystems Senior Member Posts: 1,218 Joined: Dec 2013
RE: RE: concatenation of prefixes with units and some problems
I do not want to place them independently, are the templates that do this, the interpretation must be improved,

Following the steps (Home Mode) to enter the expression from template

(4∡23°) + [Shift][templates(Units)][units] 1:prefix + [m] + E:Electricity [A]

(4∡23°)_(m)_(A) [enter] "syntax error" // -> the parser must concatenate prefix with unit (4∡23°)_(mA) Otherwise, (4∡23°)_(m)*_(A) when the calculator is turned on again, show UNDEF problem #3

Now on CAS mode There is still a problem #4

(4∡23)_mA*(5+7*i)_kOhm; [enter] returns
7.46962547135+33.5887584665*i _(kOhm*mA)

USIMPLIFY( [up][copy]

USIMPLIFY(7.46962547135+33.5887584665*i_(kOhm*mA)); [enter] returns
"Error: Bad argument type" because kOhm*mA Belongs to i (imaginary unit) and not to all expression as it should be

A solution that planted in previous post, COPY must paste between parentheses, because sometimes objects need to operate between (), You all agree?
So the previously referenced problems are solved

(4∡23)_(mA)*(5+7*i)_(kOhm); [enter] returns
7.46962547135+33.5887584665*i_(kOhm*mA) // ok

USIMPLIFY( [up][copy]

USIMPLIFY( ( 7.46962547135+33.5887584665*i )_(kOhm*mA)); [enter] returns
7.46962547135+33.5887584665*i_(V) ok

problem #5
DEG MODE
Specifying in which mode is the angle

(4∡23_deg)_mA*(5+7*i)_kOhm;
returns
(4∡23_deg)*(5+7*i)_kOhm*_mA; // ok

USIMPLIFY(Ans); -> "Error: Unmatch control word" I think the CAS can not interpret (_deg)

now HOME MODE

(4∡23_deg)_mA*(5+7*i)_kOhm;
or
or
returns
(34.4093010682∡77.4623222081)_(mA*kOhm) // ok

USIMPLIFY(Ans); ->
(34.4093010682∡77.4623222081)_(V) // ok

PHP Code:
EXPORT testAnglesOnPolarForm()BEGIN print; print((4∡23)_mA*(5+7*i)_kOhm); // ok  print((4∡23)_mA*(8.60232526704∡54.462322208)_kOhm); // ok print((4∡23_deg)_mA*(8.60232526704∡54.462322208_deg)_kOhm); // can not interpret _deg print((4∡0.401425727959_rad)_mA*(8.60232526704∡54.462322208_deg)_kOhm); // can not interpret _radEND;
 « Next Oldest | Next Newest »

 Messages In This Thread concatenation of prefixes with units and some problems - compsystems - 04-10-2017, 03:00 AM RE: concatenation of prefixes with units and some problems - compsystems - 04-10-2017, 01:31 PM RE: Simplification/evaluation of prefixes and some problems - Carlos295pz - 04-11-2017, 01:16 AM RE: RE: concatenation of prefixes with units and some problems - compsystems - 04-11-2017 02:31 AM

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