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 abeccati)

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 abeccati, 12 years ago

Owner: changed from abeccati to swingit
Status: newassigned

Assigning that as initial easy task to familiarize with petascope code.

comment:2 by Dimitar Misev, 12 years ago

Cc: Peter Baumann added
Complexity: EasyMedium
Resolution: fixed
Status: assignedclosed

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 Dimitar Misev, 12 years ago

Resolution: fixed
Status: closedreopened

comment:4 by abeccati, 12 years ago

Description: modified (diff)
Status: reopenedassigned

Opened ticket for rasdaman component (#374), this one will only address petascope component for WCPS compliance.

Note: See TracTickets for help on using tickets.