On Wed, Sep 27, 2023 at 02:53:04PM +0000, '68th' via FriCAS - computer algebra 
system wrote:
> Hello,
> 
> sum2 := sum(cos(%pi*i/n), i = 1..n)
> eval(sum2, n=10)
> gives me an expression. How do I get a real number instead?

After the to lines above use:

numeric(%)

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ZRRFU%2BFWmnp4VTHX%40fricas.org.

Reply via email to