Hi, I need to calculate a field with monthly payment, but I need the “pow” function. I tried importing dart:math, but Nowa doesn’t want to do that. The other way is making a iteration function, but that is just throwing the error: “Missing implementation of visitForStatement”. I tought I saw “modPow” somewhere in Nowa, but I think I lost it?
You can use the function as a custom function, but you should specify int or double instead of num, which is their parent type. (this is just because num type isn’t defined in Nowa, but we will fix that)
For example, write down this function (as a global function, outside any class)
Then use it inside Circuit. You can then pass X and Exp as fixed values or variables, and store the result in an existing or a new variable too. Hope this helps