[Gambas-user] Eval() square root

Bruce adamnt42 at gmail.com
Mon May 3 12:16:39 CEST 2021


On 3/5/21 6:04 pm, Martin wrote:
> I answer to myself :-)
> 
> ok, square root is:
> 
> Sqr(x)
> 
> General formula is: x^1/y right?
> 
> Martín.
> 
> El 3/5/21 a las 10:16, Martin escribió:
>> Hi,
>>
>> I am trying to make a calculator [1] that performs all the common 
>> operations. I'm using the Eval () function but I can't find 
>> documentation on the syntax that I should follow.
>> Could someone tell me where to find information?
>> Any example of square root?
>> The Gambas3 example Evaluator [1] does not give information about all 
>> the syntax that Eval accepts only addition, multiplication and two 
>> trigonometric operations, that's all.
>> Thanks.
>>
>> [1] https://gitlab.com/belmotek/kalkulilo
>>
>> [2] gambas/app/examples/Misc/Evaluator
>>
>> Martín.
>>
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 
x^(1/y)  ???
(just guessing)
even that is suseptible to float matters.
bruce


More information about the User mailing list