Post Reply 
[Help: CAS Code] Comparing answers history view
11-03-2016, 08:24 PM
Post: #5
RE: [Help: CAS Code] Comparing math expressions
Una modo simple en HOME
PHP Code:
Igual(Dat1,Dat2)
BEGIN
 IFTE
(TYPE(Dat1)=8,EVAL(Dat1)▶Dat1,0);
 
IFTE(TYPE(Dat2)=8,EVAL(Dat2)▶Dat2,0);
 
Dat1=Dat2
END

Funciona para CAS, falta asignarle un nivel de precisión en decimales.

Pruebas:
Igual(0.75, 3/4) -> true
Igual(2, 4/2) -> true

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Comparing expressions - Tim Wessman - 11-02-2016, 08:01 PM
RE: Comparing expressions - Carlos295pz - 11-02-2016, 08:31 PM
RE: - compsystems - 11-02-2016, 11:23 PM
RE: [Help: CAS Code] Comparing math expressions - Carlos295pz - 11-03-2016 08:24 PM



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