Complex Math Problem, Atleast to me

TCF = e ˄ 1100(1/298 - 1/T)

Simplify the constants.

TCF = e1100(1/298 - 1/T)

Distribute 1100 through the terms in parenthesis to get

TCF = e(1100/298 - 1100/T)

Don't make the processor do math on constants, simplifying:

TCF = e(3.6912752 - 1100/T)
 
That is true, wasn't thinking about that, simplifying expressions makes it run faster, even if you don't "need" the extra speed it is a good habit to get into.
 

Similar Topics

Hello. I'm still on my first major project in S7 and have a rather simple problem that I can't quite put into S7 terms. The problem is simple...
Replies
8
Views
2,481
I have a very complex math need to finish in S7 like: (X1-A)*Y1+(X2-A)*Y2+(X3-A)*Y3 ... +(X20-A)*Y20 Is there some good way to do that? Or I...
Replies
30
Views
7,689
Yes it's very legacy.. but sometimes it's necessary to use old stuff for fun.. and because it's so much cheaper. Crimson 3.0 had the ability to...
Replies
4
Views
1,620
Hello all, I am fairly new to programming HMI's and am working with Crimson 3.1 for the first time. I am trying to recreate an annunciator of...
Replies
12
Views
6,375
What application in your experience has demanded the most complex PLC program? I suppose I should clarify what manner "complex" I'm asking about...
Replies
37
Views
12,516
Back
Top Bottom