How to find double output?
Mostrar comentarios más antiguos
import java.math.*;
>> p=BigInteger('11');
>> m=BigInteger('2');
>> [A,B]=m.gcd(p);
Error using java.math.BigInteger/gcd
Java methods cannot be called with multiple output arguments
How to resolve this issue? I need both A and B.
Thanking in anticipation
7 comentarios
Rik
el 2 de Mzo. de 2022
What is the second output? There might be a way to compute it separately.
Ammy
el 2 de Mzo. de 2022
Rik
el 2 de Mzo. de 2022
Ok, I admit I wasn't clear enough with my question: what is the second output supposed to be in a more general sense? There is only 1 greatest common denominator, so what second value could you extract from it?
I have no experience interfacing with Java (except for copy-paste examples), so I can only help you to try to find a method to calculate the second output another way.
Ammy
el 2 de Mzo. de 2022
Ammy
el 2 de Mzo. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!