{"id":10310,"date":"2016-02-26T10:57:40","date_gmt":"2016-02-26T02:57:40","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/mathematical-expressions\/"},"modified":"2024-07-04T16:14:43","modified_gmt":"2024-07-04T08:14:43","slug":"mathematical-expressions","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/mathematical-expressions\/","title":{"rendered":"Mathematical Expressions"},"content":{"rendered":"\n<p class=\"intro-text\">IFS OI Server provides functions for performing several common mathematical calculations. The functions all require the same parameters and are used in the same way, but produce a result relevant to the function.\u00a0<\/p>\n<h2>Functions<\/h2>\n<table class=\"toc-table\">\n<tbody>\n<tr>\n<td><strong>Format<\/strong><\/td>\n<td><strong>Returns<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>Cos(Number)<\/strong><\/td>\n<td>Returns the cosine of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>Sin(Number)<\/strong><\/td>\n<td>Returns the sine of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>Tan(Number)<\/strong><\/td>\n<td>Returns the tangent of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>ArcCos(Number)<\/strong><\/td>\n<td>Returns the inverse cosine of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>ArcSin(Number)<\/strong><\/td>\n<td>Returns the inverse sine of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>ArcTan(Number)<\/strong><\/td>\n<td>Returns the inverse tangent of <em>Number<\/em>, which is an angle expressed in radians.<\/td>\n<\/tr>\n<tr>\n<td><strong>Log(Number)<\/strong><\/td>\n<td>Returns the natural logarithm of <em>Number<\/em>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Log10(Number)<\/strong><\/td>\n<td>Returns the logarithm to base 10 of <em>Number<\/em>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Abs(Number)<\/strong><\/td>\n<td>Returns the absolute value of <em>Number<\/em>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Exp(Number)<\/strong><\/td>\n<td>Returns the exponential of <em>Number<\/em>. That is, <em>e<\/em> (approximately 2.72) raised to the power of EXPR.<\/td>\n<\/tr>\n<tr>\n<td><strong>Sqrt(Number)<\/strong><\/td>\n<td>Returns the square root of <em>Number<\/em>. If EXPR is negative, an error is produced.<\/td>\n<\/tr>\n<tr>\n<td><strong>Fix(Number)<\/strong><\/td>\n<td>Returns the integer portion of <em>Number<\/em>. For negative numbers, the less negative integer (closer to zero) will be returned.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Inputs<\/h2>\n<p class=\"intro-text\"><strong>Number<\/strong>: The number to be processed.<br \/>\nBehaviour:\u00a0Required<br \/>\nDimension: SingleValue, Collection, MultiCollection<br \/>\nValid data types: Decimal, Integer<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2><span id=\"Examples\">Examples<\/span><\/h2>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Fix(23)<\/span><br \/>\nResult: <span style=\"color: #0000ff;\">23<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Fix(23.45)<\/span><br \/>\nResult: <span style=\"color: #0000ff;\">23<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Fix(23.85)<\/span><br \/>\nResult: <span style=\"color: #0000ff;\">23<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Fix(-23.1)<\/span><br \/>\nResult:<span style=\"color: #0000ff;\"> -23<\/span><\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Mathematical Expressions 4.6.5\n<ul class=\"intro-text\">\n<li>Changed Number parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Mathematical Expressions 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>IFS OI Server provides the following functions for performing several common mathematical calculations: Cos, Sin, Tan, ArcCos, ArcSin, ArcTan, Log, Log10, Abs, Exp, Sqrt, Fix<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/mathematical-expressions\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10316,"parent":3650,"menu_order":132,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[404,100,405],"class_list":["post-10310","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-angles","tag-calculations","tag-mathematical-expressions","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=10310"}],"version-history":[{"count":4,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10310\/revisions"}],"predecessor-version":[{"id":67800,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10310\/revisions\/67800"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/10316"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=10310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=10310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=10310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}