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 
Difference between Real and Virtual Calculator
10-04-2017, 07:40 AM
Post: #1
Difference between Real and Virtual Calculator
Hi to all. I'm current using a real Calculator with 12066 (2017 07 10) software version and Virtual calculator on my laptop with 11226 (2016 12 08) software version. As I know those version are the mos updated. Yesterday i wrote this simple code:
Code:

//The formula to compute PT100/1000 is:
//
//R(t)=R(0)(1+At+Bt^2+c(t-100)t^2)
//
//​​where t is the temperature, R(0) is
//the 0degree-resistance (100 or 1000)
//The remaining parameters A, B and C
//depend on the temperature standard in
//use and might be measured by the sensor
//manufacturer for additional accuracy.
//For the ITU-90 standard they equal:
//
//A = 3.9083E10^-3
//B = -5.7750E10^-7
//C = -4.1830E10=12 for t<0
//    0.0 for t>=0
//
//Simone Selleri 2017


EXPORT RTD(r,t,d)
BEGIN

3.9083ᴇ-3▶A;
5.7750ᴇ-7▶B;
-4.1830ᴇ-12▶C;
r▶R;
t▶T;
d▶D;

"R=D*(1+A*T+B*T^2+C*(T-100)*T^3)"▶E1;
CASE
IF R==0 AND T<0 THEN SOLVE(E1,R);END;  
IF R==0 AND T>=0 THEN 0.0▶C;SOLVE(E1,R);END;
IF T==0 AND R<>0 THEN SOLVE(E1,T);END;
END;
END;
This code is working fine on my real calculator, but is not possible to run on virtual one due a syntax error

[Image: Syntax_error.png]

[Image: Syntax_error1.png]

Can someone explain me why it happens?
I always use the virtual calculator as "beta tester" for my programs, because is easier and quicker to write, save and test, but now i'm getting different behavior, I'm confused.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Difference between Real and Virtual Calculator - simone_71 - 10-04-2017 07:40 AM



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