<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Float numbers for Lagrange interpolation</title>
		<link>http://aseba.wikidot.com/forum/t-663947/float-numbers-for-lagrange-interpolation</link>
		<description>Posts in the discussion thread &quot;Float numbers for Lagrange interpolation&quot; - ASEBA rounds all float numbers like floor function. Is there anyway to use float numbers?</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 18 Aug 2026 03:03:21 +0000</lastBuildDate>
		
					<item>
				<guid>http://aseba.wikidot.com/forum/t-663947#post-1805115</guid>
				<title>Re: Float numbers for Lagrange interpolation</title>
				<link>http://aseba.wikidot.com/forum/t-663947/float-numbers-for-lagrange-interpolation#post-1805115</link>
				<description></description>
				<pubDate>Thu, 27 Jun 2013 07:42:05 +0000</pubDate>
				<wikidot:authorName>StephaneMagnenat</wikidot:authorName>				<wikidot:authorUserId>709253</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Aseba only provides 16-bit integers as scalar type, yet I see some solutions for your problem:</p> <ul> <li>Using <tt>math.dot</tt> which does the dot product of two vectors using an internal 32-bit accumulator, then shifts right on the result before writing it back to a 16-bit integer.</li> <li>Using <tt>math.stat</tt> which computes the mean of an array using an internal 32-bit accumulator, then divides by the size of the array.</li> <li>Implementing a set of basic floating-point operations using native functions taking arrays of two 16-bit integers as parameters. That is not very clean but would work.</li> <li>Implementing a direct support for Lagrangian interpolation using native functions.</li> </ul> <p>The first two suggestions are available on stock virtual machines, the last two requires adding new native functions.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://aseba.wikidot.com/forum/t-663947#post-1801466</guid>
				<title>Float numbers for Lagrange interpolation</title>
				<link>http://aseba.wikidot.com/forum/t-663947/float-numbers-for-lagrange-interpolation#post-1801466</link>
				<description></description>
				<pubDate>Fri, 21 Jun 2013 14:46:09 +0000</pubDate>
				<wikidot:authorName>YYhugo</wikidot:authorName>				<wikidot:authorUserId>1657536</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I want to use Lagrange interpolation in Thymio 2, but for the sum in a lagrange interpolation results always in zero bacause ASEBA rounds all float numbers like floor function. Is there anyway to use the floating numbers?</p> <p>I tried to use the range [-100, 100] for float, but the the final sum would be around 100000 and ASEBA can handle it.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>