Skip to content

Commit c4f27df

Browse files
committed
Added pow for Physicals
1 parent c85284b commit c4f27df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/Physical/Experimental/PhysicalFunctions.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public typealias VVDoubles = (UnsafeMutablePointer<Double>, UnsafePointer<Double
1818
public func sqrt(_ p: Physical) -> Physical {
1919
p ^ (1.0/2)
2020
}
21+
public func pow(_ p: Physical, _ power: Double) -> Physical {
22+
p ^ power
23+
}
2124

2225
public extension Physical {
2326
static func sqrt(right: Physical) -> Physical {

0 commit comments

Comments
 (0)