We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e1c2c commit bfa4872Copy full SHA for bfa4872
docs/src/API/blocks.md
@@ -36,6 +36,8 @@ Add
36
Add3
37
Product
38
Division
39
+Power
40
+Modulo
41
StaticNonLinearity
42
Abs
43
Sign
src/Blocks/math.jl
@@ -208,6 +208,28 @@ Output first input divided by second input.
208
end
209
210
211
+"""
212
+ Power(; name)
213
+
214
+Output the exponential with base as the first input and exponent as second input i.e u1^u2
215
216
+# Connectors:
217
218
+ - `input1`
219
+ - `input2`
220
+ - `output`
221
222
+@mtkmodel Power begin
223
+ @components begin
224
+ input1 = RealInput()
225
+ input2 = RealInput() # denominator can not be zero
226
+ output = RealOutput()
227
+ end
228
+ @equations begin
229
+ output.u ~ input1.u ^ input2.u
230
231
+end
232
233
"""
234
Modulo(; name)
235
0 commit comments