File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,87 @@ Output the remainder when the first input is divided by second input.
252252 end
253253end
254254
255+ # # Rounding functions add after the symbolic functions are registered
256+ # """
257+ # Floor(; name)
258+
259+ # Output the floor rounding of the input.
260+
261+ # # Connectors:
262+
263+ # - `input`
264+ # - `output`
265+ # """
266+ # @mtkmodel Floor begin
267+ # @components begin
268+ # input = RealInput()
269+ # output = RealOutput()
270+ # end
271+ # @equations begin
272+ # output.u ~ floor(input.u)
273+ # end
274+ # end
275+
276+ # """
277+ # Ceil(; name)
278+
279+ # Output the ceiling rounding of the input.
280+
281+ # # Connectors:
282+
283+ # - `input`
284+ # - `output`
285+ # """
286+ # @mtkmodel Ceil begin
287+ # @components begin
288+ # input = RealInput()
289+ # output = RealOutput()
290+ # end
291+ # @equations begin
292+ # output.u ~ ceil(input.u)
293+ # end
294+ # end
295+
296+ # """
297+ # Round(; name)
298+
299+ # Output the rounding to the nearest integer of the input.
300+
301+ # # Connectors:
302+
303+ # - `input`
304+ # - `output`
305+ # """
306+ # @mtkmodel Round begin
307+ # @components begin
308+ # input = RealInput()
309+ # output = RealOutput()
310+ # end
311+ # @equations begin
312+ # output.u ~ round(input.u)
313+ # end
314+ # end
315+
316+ # """
317+ # Trunc(; name)
318+
319+ # Output the truncation rounding of the input.
320+
321+ # # Connectors:
322+
323+ # - `input`
324+ # - `output`
325+ # """
326+ # @mtkmodel Trunc begin
327+ # @components begin
328+ # input = RealInput()
329+ # output = RealOutput()
330+ # end
331+ # @equations begin
332+ # output.u ~ trunc(input.u)
333+ # end
334+ # end
335+
255336"""
256337 StaticNonLinearity(func; name)
257338
You can’t perform that action at this time.
0 commit comments