ts-7000
[Top] [All Lists]

Re: [ts-7000] Math functions on the TS?

To:
Subject: Re: [ts-7000] Math functions on the TS?
From: "Wim Vinckier" <>
Date: Wed, 11 Apr 2007 21:55:08 +0200
I think you didn't read the manual good enough.  I get on my compiling machine:
$  cat sin.c
#include <stdio.h>
#include <math.h>

int main()
{
printf("sin pi = %f\n",sinf(0));
return 0;
}
$ /opt/crosstool/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc -Wall -O2  -lm  sin.c   -o sin

Trying to run sin on my ts7260:
$ ./sin
sin pi = 0.000000

Hope it helps...

wimpunk.

On 11 Apr 2007 11:40:23 -0700, Jonathan <> wrote:



Greetings all,

I need to do some math with transcendental functions -- sin(), acos()
-- that sort of thing. I understand there's no FPU so these need to be
emulated in software: how do I do this? Is there a library I can link
to or a magic gcc flag I'm missing?

I've RTFM and JFGI but I can't seem to find this info anywhere.

Thanks in advance!




--
You have been on the computer to long when you start tilting your head sideways to smile :-) __._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU