|
PI
Nov 25, 2007 16:13:43 GMT -5
Post by James :) (aka Madcow) on Nov 25, 2007 16:13:43 GMT -5
for now you can add it in though my maths plugin but i think it would be cool if basic4gl included a constant called pi contaning the value of pi.
|
|
|
PI
Nov 25, 2007 17:40:01 GMT -5
Post by DJLinux on Nov 25, 2007 17:40:01 GMT -5
the name of pi is m_pi in BASIC4GL you can see all const's under menu Help->Functions and Contants
|
|
|
PI
Nov 25, 2007 18:02:23 GMT -5
Post by James :) (aka Madcow) on Nov 25, 2007 18:02:23 GMT -5
what dose m_e do though, i'll also remove pi from my plugin and work out other functions i can do (calculation of diffrence etc)
|
|
|
PI
Nov 26, 2007 13:18:37 GMT -5
Post by Empyrion Martyr on Nov 26, 2007 13:18:37 GMT -5
my guess is m_e is "e" in maths, aproximately 2.71 (e is the base of the natural logarithm or however it is called in english... it is also used in the calculus of limits, in analysis ... for example, when "n" tends to infinity, the limit of (1 + x n ) 1/xn is "e" if x n tends towards 0 (for example it is 1/infinity) as base of a lograithm, log e(x)=y is equal to writing ln(x)=y, and represents the exponent to which you raise the base to equal y. srry for the maths, i'm sure y'all prolly must know about it, but i figured it would be useful for those of younger age (like me) who don't have the luck to study in an Eastern European school (that is, not like me, i'm lucky)
|
|
|
PI
Nov 26, 2007 23:23:58 GMT -5
Post by Pizzasgood on Nov 26, 2007 23:23:58 GMT -5
'e' is also used when converting sinusoids into complex numbers, which you need when doing signal processing type stuff. It also came up briefly in my physics class the other day when we went over AC circuits, but the professor mostly glossed over phasor addition and didn't even explain why it worked (not an issue for me, since my signal processing class went into the process in depth at the beginning of the year and we've been converting between complex numbers and sinusoids daily ever since).
|
|
|
PI
Nov 27, 2007 8:02:11 GMT -5
Post by Empyrion Martyr on Nov 27, 2007 8:02:11 GMT -5
Forgot about that pizzasgood i did them last year in the tenth grade ( phasor addition and conversion between complex numbers and sinusoids) (we were supposed to be doing them in the first highschool year, the ninth grade, but since Romania is in EU now, we have to borrow all the sh!t and make school easier)
Kinda cool tho.
|
|
|
PI
Nov 27, 2007 10:47:37 GMT -5
Post by James :) (aka Madcow) on Nov 27, 2007 10:47:37 GMT -5
Basic4gl could add the pi symbol as a constant
|
|
|
PI
Nov 27, 2007 15:43:51 GMT -5
Post by Pizzasgood on Nov 27, 2007 15:43:51 GMT -5
The subject never even came up in my high school "career". We barely looked at complex numbers, and nobody ever mentioned converting sinusoids to complex numbers until my second year of college. I'm not sure if it's so much the school system as all the school changing I did. I went to five different schools over four years, across two states about as far apart as France and Romania, and some items definitely slipped through the cracks between the different curriculums. For example, none of my math classes ever covered factorials, because it was always taught at a different year in each school, and never the year I was in.
I do get the feeling that I happened to have pretty sub-par classes before my senior year though. My younger brother and sister learned stuff in middle-school that my classes didn't cover until I took AP Calculus in my senior year. If I wasn't such a fast learner I'd be really miffed at the lousy job they did, but I've managed to catch up pretty painlessly. And it's not like I can despise the local school system much more anyways. I hope we're just sub-par here and that the rest of the country is at least half decent. But I suspect that the rest of the country is only marginally better, with the exception of a couple bright spots.
Erm... [/rant]
EDITED: I meant factorials, not fractals.
|
|
|
PI
Nov 27, 2007 18:01:45 GMT -5
Post by James :) (aka Madcow) on Nov 27, 2007 18:01:45 GMT -5
The one thing that i hate about the school system is just because a few dim lightbulbs (about 2 or so) wrote a stupid story. In english your not allowed to write your own story. They limit you to a genre but even then they don't stop. they impose stupid limits:
you must include x and must write in the style of x and construc it like x book e were reading ( a fancy way of saying copying and then changing a few words to make a diffrentish story)
I'm glad my imadnation hasn't shortend
|
|
|
PI
Nov 27, 2007 20:48:56 GMT -5
Post by Pizzasgood on Nov 27, 2007 20:48:56 GMT -5
I haven't had to write an actual story (outside college) since sixth grade or so. All they ever had us write were essays and poems. But I know what you mean, because my art classes were the same way at first, especially the very beginning classes like Visual Art. But in Applied Design and especially Drawing II, we were given much more free-reign. She'd give us rough dimensions and several options for media, and vague bounds for what styles and subjects to use. So if I felt like cutting my face into the shape of a flame and superimposing it over a pizza, I could (and did). I figure writing classes are probably like that too.
|
|
|
PI
Nov 28, 2007 3:28:36 GMT -5
Post by James :) (aka Madcow) on Nov 28, 2007 3:28:36 GMT -5
Art isn't that bad but you still have to copy an artist style.
|
|
|
PI
Nov 28, 2007 9:55:01 GMT -5
Post by Empyrion Martyr on Nov 28, 2007 9:55:01 GMT -5
Well you would copy an artist style at first until yuh find out what is your style (or form it). that's what my sister did. After she finished college here she tried to follow a second one in California (dun ask me where and what was the name of it) something about Visual Arts and Computer Graphics. She ended up switching to Foreign Languages (what a switch!) However I like my romanian and english classes but it may be because of the teachers (got a young one at romanian, o she's gorgeous ) and they let us write whatever we can think of if it's correct and nice. (But yeah sometimes they go like: "Start your essay with the following words etc." and include the words "...") The system still makes you learn by heart, the soviet style... Don't think, memorize what is given, you cannot think by yourself, you are dumb, let us teach you and you reproduce word by word. Thinking above the limits is hard when you finish school. anyways that's a lil bit off topic A lil' bit waay off topic srry... So coming back to it... I don't think "PI" or "E" should be added as symbols. First of all, M_PI is the same name used in C++ (easier for those who know c++ or learn it afterwards)... Secondly, you don't want to waste common used variable names. Maybe the person wants to substitute with another pi value with lesser decimals (although it would be dumb if you ask me). In general, when I make a more proffesional looking program I tend to evade by any means wasting variable names (all variables of the program begin with "__" or something else). I think Tom should leave it at that. M_PI and M_E.
|
|
|
PI
Nov 28, 2007 11:09:03 GMT -5
Post by James :) (aka Madcow) on Nov 28, 2007 11:09:03 GMT -5
there is no charicter code for the pi symbol meaning it dose not exsist. so you can't do it anyway.
|
|
|
PI
Nov 29, 2007 10:57:43 GMT -5
Post by Empyrion Martyr on Nov 29, 2007 10:57:43 GMT -5
You mean like a symbol for PI? , i though the identifier "PI" made out of the letters "p" and "i". Yes well, you could do it even if it were a symbol but I wouldn't... (the greek letter for PI is not on the standard keyboard so another symbol should be found like... "!" for example )
|
|
|
PI
Nov 29, 2007 19:47:55 GMT -5
Post by Pizzasgood on Nov 29, 2007 19:47:55 GMT -5
I don't know about B4GL, but in the real world '!' means fractal. Or maybe that was sarcasm that flew over my head.
|
|