[
https://issues.apache.org/jira/browse/TINKERPOP3-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14715510#comment-14715510
]
Marko A. Rodriguez commented on TINKERPOP3-761:
-----------------------------------------------
Where are we with this?
I just did some work on {{sack()}} and {{Operator}} and I'm wondering if
{{Operator}} goes away with the development of this ticket?
Currently, we do:
{code}
g.V()...sack(mult).by("weight")
{code}
Do you think the {{Parameters}} object comes into play with math functions?
{code}
g.V.as('a').out().as('b').sum(select('a').values('age'),select('b').values('age'))
{code}
... :/ :(
> Some basic mathematical functions / steps
> -----------------------------------------
>
> Key: TINKERPOP3-761
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-761
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.0-incubating
> Reporter: Daniel Kuppitz
> Assignee: Marko A. Rodriguez
>
> Every once in a while I wish to have steps for some basic mathematical
> operations ({{add()}}, {{sub()}}, {{mul()}}, {{div()}}). Since {{sub(num)}}
> is the same as {{add(-num)}} and {{div(num)}} is the same as {{mul(1/num)}},
> we would only need two new step implementations.
> Oh, and then there's also {{mod()}}, thus 3 new step implementations.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)