[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: хороший калькулятор



Fri, 04 Dec 2009 16:22:38 +0300
Ed <spied@yandex.ru> wrote:

> x_empty_dragon wrote:
> > python?
> 
> 
>  >>> 2+2^(1/2)
> 4
>  >>> 2+2.0^(1.0/2)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: unsupported operand type(s) for ^: 'float' and 'float'
>  >>> 0x16+0b10
>   File "<stdin>", line 1
>     0x16+0b10
>             ^
> SyntaxError: invalid syntax

zcalc:

1> 2+2**(1.0/2) 
3,41421



-- 
Best regards,
 Alexander GQ Gerasiov

 Contacts:
 e-mail:    gq@cs.msu.su             Jabber:  gq@jabber.ru
 Homepage:  http://gq.net.ru         ICQ:     7272757
 PGP fingerprint: 04B5 9D90 DF7C C2AB CD49  BAEA CA87 E9E8 2AAC 33F1


Reply to: