[ 
https://issues.apache.org/jira/browse/PHOENIX-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567534#comment-14567534
 ] 

Shuxiong Ye commented on PHOENIX-2020:
--------------------------------------

The patch above will firstly turn input to double type, and using 
java.lang.Math related functions to get the result.
Note that, for both types BigDecimal and long, when type cast occurs from these 
two types to double, there will be a loss of precision.
java.lang.Math is only support for double.


> Implement build-in math function EXP
> ------------------------------------
>
>                 Key: PHOENIX-2020
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2020
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Shuxiong Ye
>            Assignee: Shuxiong Ye
>             Fix For: 5.0.0, 4.5.0, 4.4.1
>
>         Attachments: 
> 0001-PHOENIX-2020-Implement-build-in-math-function-EXP.patch
>
>
> EXP is exponential function, and will be a special case of POWER function.
> Examples show as below:
> exp(dp)       exponential     exp(1.0)        2.71828182845905



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to