I tried to follow a suggestion from @vishwas to simplify my first extension My first extension - quadratic equation - #7
this way:
public YailList Calc(float a, float b, float c) {
float x1 = /*YOUR CODE TO FIND THE FIRST SOLUTION*/;
float x2 = /*YOUR CODE TO FIND THE SECOND SOLUTION*/;
return YailList.makeList(new Object[] {x1, x2});
}
but unfortunately that fails:
I got this PM from @vishwas
It looks like you cannot use the gnu.lists.Pair module in the template repository. The YailList module uses Pair to make the list, hence the build failed when you added the list to your code. Evan might have a better idea as to why this is happening as he’s the author of the template repository.
(I just tried making the extension using the full AI sources, and it works
)
Is there any solution for that?
