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 492ec48 commit b09f1e6Copy full SHA for b09f1e6
src/Blocks/math.jl
@@ -252,6 +252,26 @@ Output the remainder when the first input is divided by second input.
252
end
253
254
255
+"""
256
+ UnaryMinus(; name)
257
+
258
+Output the product of -1 and the input.
259
260
+# Connectors:
261
262
+ - `input`
263
+ - `output`
264
265
+@mtkmodel UnaryMinus begin
266
+ @components begin
267
+ input = RealInput()
268
+ output = RealOutput()
269
+ end
270
+ @equations begin
271
+ output.u ~ -(input.u)
272
273
+end
274
275
## Rounding functions add after the symbolic functions are registered
276
# """
277
# Floor(; name)
0 commit comments