forsyde / forsyde-shallow

ForSyDe's Haskell-embedded Domain Specific Language
https://forsyde.github.io/forsyde-shallow/
BSD 3-Clause "New" or "Revised" License
12 stars 10 forks source link

CTLib: d2aConverter do not work as intended. #4

Closed joseedil closed 7 years ago

joseedil commented 7 years ago

I have made modified Daniel's Pitch Control Synchronous model for a dynamic system. He used plotCT' function to see the outputs via a d2aConverter process. The graph is always linear, despite the behavior of the model.

I think the problem is in the auxiliary constRationalF function.

joseedil commented 7 years ago

When using the package inside a sanbdox with 'cabal repl' the d2aConverter returns an infinite list.

joseedil commented 7 years ago

Just realized that it is not an infinite list, but a huge list because of a arbitrary and fixed timestep parameter used by the show function for CT Signals. Does it makes sense to approach it like this?