#include "block.h" #include class Asin : public Block { private: InPort < double > * in; OutPort < double > * out; public: Asin(const Blockopt & blockopt) : Block(blockopt) {} void makeIOPorts() { in = new InPort < double > (this, "in", 1); out = new OutPort < double > (this, "out", 1); } void go() { out->write(asin(in->read())); } }; PUBLISH(Asin);