Discussion forum about PANORAMIC language
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Discussion forum about PANORAMIC language

Mac, Windows & Android application development with PANORAMIC language
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Latest topics
» What happened with the panoramic language ?
by Wed Jan 03, 2024 4:09 pm

» Hello world.
by Wed May 09, 2018 11:53 pm

» Biomorphes de PICKOVER
by Sun Jun 18, 2017 2:33 am

» In less than 10 lines of code
by Fri Jun 16, 2017 5:03 am

» Effect Dopler
by Fri Jun 16, 2017 3:29 am

» SuperEllipse
by Wed Jun 14, 2017 4:01 am

» Plants
by Wed Jun 14, 2017 3:38 am

» Mira's attractor
by Wed Jun 14, 2017 3:30 am

» Triangle of Sierpinski
by Wed Jun 14, 2017 3:22 am

» Esthétique polaire
by Wed Jun 14, 2017 3:16 am

» Butterfly effect : Lorenz equations
by Wed Jun 14, 2017 3:08 am

» Collision detection
by Tue Jun 13, 2017 5:09 am

» The Bees Laline Paull Epub Books
by Mon Oct 10, 2016 8:58 pm

» PANORAMIC for Mac OSX 10 is available
by Tue Aug 09, 2016 6:08 pm

» ide
by Sat Jul 16, 2016 12:27 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

 

 Confirm method of raising number to a power

Go down 
2 posters
AuthorMessage
jayesjay




Number of posts : 2
Registration date : 2014-04-19

Confirm method of raising number to a power Empty
PostSubject: Confirm method of raising number to a power   Confirm method of raising number to a power EmptySat Apr 19, 2014 6:04 pm

Please confirm that the usual Basic expression "x^y" is not valid in Panoramic language for raising x to power y.
For example 2^3 = 8.

Can I assume that the normal rules of arithmetic apply otherwise, in order of execution:
1st Power
2nd Mult/Div
4th Plus/Minus
5th As controlled by brackets (((())))

I am writing this from memory, having just downloading Pan.. I haven't written a basic program for a long time, and just want to have some fun.
Back to top Go down
papydall

papydall


Number of posts : 39
Age : 73
Localisation : TUNISIA
Registration date : 2013-03-16

Confirm method of raising number to a power Empty
PostSubject: Re: Confirm method of raising number to a power   Confirm method of raising number to a power EmptySun Apr 20, 2014 12:32 am

Hello jayesjay

In PANORAMIC, the syntax for a^b is: POWER(a,b)

Code:
Dim a,b
a = 2 : b = 3
print power(a,b)


If the French language is not an obstacle for you, I invite you on the French FORUM. It is Confirm method of raising number to a power Ici11here
It is much more active than the English FORUM.

Please excuse my bad English. Embarassed 

Good programming with PANORAMIC.  Laughing
Back to top Go down
 
Confirm method of raising number to a power
Back to top 
Page 1 of 1
 Similar topics
-
» Refer to objects by name instead of number
» [solved] How to read a real number from binary file ?

Permissions in this forum:You cannot reply to topics in this forum
Discussion forum about PANORAMIC language :: Panoramic for Windows :: Help?-
Jump to: