This is a read-only archive of the old Scratch 1.x Forums.

Try searching the current Scratch discussion forums.

Try searching the current Scratch discussion forums.

Hello:

I need to convert a negative thermister probe reading from a PicoBoard into a postive linear temperature reading. To do that I need to raise one variable to the power of a number. Could someone give me some pointers on doing this?

THANKS

Sid

Offline

How about...

for y as the answer, x as the number, and i as the power being raised to...

[blocks]<set{ y }to( x)>

<repeat( (( i <-> 1 )))>

<set{ y }to(( y <*> x )) )>>

[/blocks]

*Last edited by mrswanson (2009-08-13 19:52:37)*

Offline

**DanielAjoy****Scratcher**- Registered: 2009-08-10
- Posts: 7

## siderits wrote:

Hello:

I need to convert a negative thermister probe reading from a PicoBoard into a postive linear temperature reading. To do that I need to raise one variable to the power of a number. Could someone give me some pointers on doing this?

THANKS

Sid

Yes. Try this project:

http://scratch.mit.edu/projects/DanielAjoy/654552

Offline