Find Roots of Function & Return Column Vector

AI Thread Summary
The discussion focuses on creating a function that identifies and returns the roots of a given function in a specific format. The desired output is a column vector containing the roots in the left semiplane, with a zero included only if there is precisely one root at the origin. Users are experiencing challenges in achieving the correct output format, often resulting in either a column full of zeros or an empty vector. There is an offer to share existing code for further assistance. The conversation emphasizes the need for clarity in the function's logic to meet the specified requirements.
noobienoob
Messages
3
Reaction score
0
i need to create a function that returns the pure zeros on the left semiplane and 0 if there is one and only one zero in the origin of the referential. the return has to be in a column vector like [root1;root2;...;rootn;0] or [root1;root2;...;rootn] if there is no root in the origin of the referential. i can get a column full of zeros or an empty vector. i can post the code of what i made if necessary.
 
Physics news on Phys.org
coluna.PNG
vazio.PNG
 
that is what i got so far. but I'm stuck here...
 
Back
Top