ansoft源函数
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
The edit box on the left is for entering a variable name, while the
one to the right (after the equals sign) is for the corresponding expression. To modify the name/expression for a variable, select it
from the listbox by clicking on it. V ariables in the listbox are
sorted alphabetically.
V ariable names must start with an alphabetic character, and may include alphanumeric characters and the underscore character. The following operators are accepted in expressions (listed in decreasing precedence): ! (factorial), - (unary minus),
** (exponentiation),
* (multiplication), / (division), % (modulus),
+ (addition), - (subtraction),
<< (left shift), >> (right shift),
== (equals), != (not equals), > (greater than), < (less than),
>= (greater than equals), <= (less than equals),
& (bitwise and), | (bitwise or), ^ (bitwise xor), ~ (1's complement), && (logical and), || (logical or)
The following intrinsic functions are accepted in expressions: if (conditional_expression, true_expression, false_expression),
pwlx (variable, form_expression, dataset_expression),
pwly (variable, form_expression, dataset_expression),
sign (returns sign of argument), abs, exp, pow, ln (natural logarithm), log (log to the base 10), lg (log to the base 2), sqrt, floor, ceil,
round, rand (returns a random number between 0 and 1), deg, rad,
sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh.
Dataset expressions are expressions of the form:
dset((x0, y0), ..., (xn, yn))
These expressions may be used as the third parameter to pwlx and pwly functions, and may also be assigned to variables, in which case the variable may be used as the third parameter to pwlx and pwly functions.
Piecewise linear functions accept a form_expression as their second parameter, which is either: bounded, constant, periodic, linear, or an expression that evaluates to a number 1 through 4 (1 = bounded,
2 = constant,
3 = periodic,
4 = linear). The pwlx function interpolates along the x axis and returns a corresponding y value. The pwly function interpolates along the y axis and returns a corresponding x value.
All trigonometric functions expect their arguments to be in degrees,
and inverse trigonometric functions' return values are in degrees.
Note that "pi" is a built-in constant, and may not be reassigned.
Intrinsic function names are reserved, and may not be used as variables.。