關於Simultaneous Equations(聯立方程式)
About Simultaneous Equations
在Relations中的Simultaneous Equations,幾個變量(參數)或尺寸必須同時解決,因此考慮到這些規則來創建聯立方程式,幾個要點:
Relations in the Simultaneous Equations, several variables (parameters) or size must be resolved, taking into account these rules to create simultaneous equations points:
- 聯立方程式開始前,必須聲明聯立方程中使用的變量,例如,下面例子中的面積= 1000。
- 當求解聯立方程式,系統僅返回一個組結果(即使方程式的解是多於一個以上的解)。
- 您可以混用單變量關係的聯立方程式。
- Before the beginning of simultaneous equations, simultaneous equations must declare the variable used, for example, following the example of area = 1000.
- When solving the simultaneous equations, the system returns only one set of results (even if the solution is more than one equation above solution).
- You can mix univariate relationship simultaneous equations.
一個Model最簡單的就是算面積,已知一長方體的面積跟周長,如何求出長跟寬?
A simple example, a rectangular area with the known perimeter, how long now find wide?
A simple example, a rectangular area with the known perimeter, how long now find wide?
Parameter:
- Length => L
- Width => W
Conditions:
- The area equals 100
- The perimeter equals 140
Equations:
- Area (面積) =L*W
- Perimeter =L*2+W*2 =(L+W)*2
---------------------------------------------------------------------------------------------------------------
/*Simultaneous Equations
AREA = 1000
PERIMETER = 140
SOLVE
L*W = area
2*(L+W) = PERIMETER
FOR L W
---------------------------------------------------------------------------------------------------------------
來看看,經由Relations中的Simultaneous Equations求解出來的L,W分別是多少?
From Simultaneous Equations => L,W?
答案是L =50 ,W=20
Tips:
- 聯立方程式要在SOLVE and FOR 間敘述。
- 出現在聯立方程中的任何變量(Variables),不是在FOR列表中的將被解讀為常數(Constants)。
若有仔細去計算,其實這個方程式的答案有2組 (L,W) =(50,20) & (20,50);
The answer to this equation has 2 groups (L, W) = (50,20) & (20,50);
延伸題,若是W > L,Relation程式要怎麼改寫呢?
Extend, if W> L, How to rewrite this Relation?
結果在下面,動動腦試試看!
版權所有請勿轉載或複製
http://creosimpleautomation.blogspot.tw/
------------------------------------------------------------------------------------------------------------
這Blog作為自己撰寫研究Creo Simple Automation設計自動化的分享。
沒有留言:
張貼留言