Opened 12 years ago
Last modified 11 years ago
#357 closed task
Implement `pow()' WCPS function — at Version 4
Reported by: | Piero Campalani | Owned by: | swingit |
---|---|---|---|
Priority: | critical | Milestone: | 9.0 |
Component: | petascope | Version: | 8.4 |
Keywords: | pow unary | Cc: | Peter Baumann |
Complexity: | Medium |
Description (last modified by )
Despite all exponentialExpr
are implemented in Petascope (see WCPS standard Sec.7.1.17), only pow(C,p)
function is missing, and should be implemented despite easily reproducible by means of sequences of products.
Pow is a unary expression (src/main/java/petascope/wcps/server/core/UnaryOperationCoverageExpr.java
).
Examples:
for c in (mean_summer_airtemp) return encode( coverage averagesOverTime over $T t(1:5) values pow($T,3), "csv")
for c in (mean_summer_airtemp) return encode( pow(c[x:"CRS:1"(100:101),y:"CRS:1"(300)],3), "csv")
See how other similar operators are implemented, e.g. log
, ln
, exp
.
Depends on #374
Change History (4)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 12 years ago
Cc: | added |
---|---|
Complexity: | Easy → Medium |
Resolution: | → fixed |
Status: | assigned → closed |
There's no pow
equivalent function in rasdaman, I guess that's why it wasn't implemented in petascope in the first place.
So the first task is to implement pow in rasdaman, and then in petascope.
comment:3 by , 12 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 12 years ago
Description: | modified (diff) |
---|---|
Status: | reopened → assigned |
Opened ticket for rasdaman component (#374), this one will only address petascope component for WCPS compliance.
Assigning that as initial easy task to familiarize with petascope code.