Login

Welcome, Guest. Please login or register.

February 22, 2026, 06:40:36 am

Author Topic: help  (Read 6703 times)  Share 

0 Members and 1 Guest are viewing this topic.

cara.mel

  • Guest
Re: help
« Reply #15 on: March 06, 2008, 07:17:02 pm »
0
Second monster:
def mysin(x, n):
   if (n == 0):
   {
      return x
   }
   else:
   {
      return + mysin(x, n - 1)
   }

Thank you for translating it neobeo. although I don't understand what it does still. Does x get a number as well as n? Why are there 2 numbers in the ()

edit: and how does it look in normal maths

Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #16 on: March 06, 2008, 07:24:16 pm »
0
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #17 on: March 06, 2008, 07:26:49 pm »
0
x gets a number as well, right. The function accepts two arguments, that's why the there are two labels in the argument paranthesis. That happens when you want to pass over more than one piece of information to a function.
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


cara.mel

  • Guest
Re: help
« Reply #18 on: March 06, 2008, 07:29:50 pm »
0
1. why/how does that work
2. is it in radian or degree
3. does it keep going forever or does it stop at 90 or so

I will try and work through it, but first:


So if I had:
dim x, y as integer
x=5
y=1
function addnumber(x,y)
x + y
end function

it would return 6?

and if it was
dim x, y as integer
x=5
y=1
function addnumber(x,y)
x^2 + y
end function

it would return 26?
(I dont remember how functions work and where the number goes but anyway.)

AppleXY

  • Life cannot be Delta Hedged.
  • Victorian
  • ATAR Notes Superstar
  • ******
  • Posts: 2619
  • Even when the bears bite, confidence never dies.
  • Respect: +16
Re: help
« Reply #19 on: March 06, 2008, 07:30:02 pm »
0

2009 - BBus (Econometrics/Economics&Fin) @ Monash


For Email: click here

Need a question answered? Merspi it!

[quote="Benjamin F

cara.mel

  • Guest
Re: help
« Reply #20 on: March 06, 2008, 07:35:45 pm »
0
http://en.wikipedia.org/wiki/Taylor%27s_series#List_of_Taylor_series_of_some_common_functions

how did they know to change it for each one. how did they get it from the first one way at the top of the article. it doesnt make sense.

how does a series work. i have been told i should know that from year 11 so im dumb.

Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #21 on: March 06, 2008, 07:35:55 pm »
0
dim x, y as integer
x=5
y=1
function addnumber(x,y)
x^2 + y
end function

it would return 26?

Looks good, you might have to write return x^2 + y though, depending on the programming language. (The details are irrelevant really, since it's language specific).

It's in radians and has a radius of convergence of infinity, this means you can plug in any value! However, that would only be true if you used the whole infinite number of terms. If you cut off this series at some point, you'd get more accurate results by plugging in values closer to zero, this is because this taylor series is said to be "centered" at 0. So if you put in x = 10^(10^10), you probably wouldn't get very accurate results with a small finite number of terms.
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #22 on: March 06, 2008, 07:40:02 pm »
0
http://en.wikipedia.org/wiki/Taylor%27s_series#List_of_Taylor_series_of_some_common_functions

how did they know to change it for each one. how did they get it from the first one way at the top of the article. it doesnt make sense.

how does a series work. i have been told i should know that from year 11 so im dumb.

As far as I know Taylor Series do not crop up in high school.

Here's one method of finding the result for .

Suppose that for some numbers :



By plugging in x = 0, you get

Now differentiate both sides of the equation and set x = 0 again, getting:





By repeating this process you can calculate all the coefficients, the pattern will soon emerge!
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


cara.mel

  • Guest
Re: help
« Reply #23 on: March 06, 2008, 07:43:12 pm »
0
but aidan said i should know of a series in general and i dont and he wouldnt explain it to me =(

not this type, this is in like week 10 or 11 or so of mth1030.

why are there subscripts, in like a1, I dont follow that.

Neobeo

  • Victorian
  • Trendsetter
  • **
  • Posts: 188
  • 反逆 の Neobeo
  • Respect: +3
Re: help
« Reply #24 on: March 06, 2008, 07:44:00 pm »
0
In VB(script) it would look like

dim x, y as integer
x=5
y=1
function addnumber(x,y)
addnumber = x^2 + y
end function

Here, the "addnumber = x^2 + y" is really assigning the value "x^2 + y" to the function. The difference between this and "return" is that "return" immediately terminates the function. In VB(script) the only way to terminate a function or routine is by "end function" or "exit function".
Mathematics Coach: Tuition and Enrichment // Email/MSN:

If you remember the flying birds, they died D=

Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #25 on: March 06, 2008, 07:49:00 pm »
0
Subscripts are used to name different constants that we want to calculate. I could've used a, b, c, d etc, but it is much more convenient and systematic to use subscripts to distinguish between them.

Aidan was probably referring to sequences and series which are taught at a rudimentary level in further maths. This would be sequences of numbers, which is basically a function that has the domain of the natural numbers. For example consider f(n) = 3n + 2, with domain the natural numbers. Then you could write the sequences of numbers defined by f by calculating f(1), f(2), ... (5, 8, 11, ...).

You will probably study sequences and series in a more rigorous manner when you take calculus and learn about convergence, and methods of finding whether a series converges/diverges.
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


cara.mel

  • Guest
Re: help
« Reply #26 on: March 06, 2008, 07:52:15 pm »
0
so a0=a, a1=b, a2=c etc?
*me tries to understand now I get that*

Edit: wait, how does it work for x=1 then o_O, because how do I find a b c

f(n) = 3n + 2 - how does that work. why does it keep going. what is the point of it then because it would just be infinity when you add them together. (the ... mean it keeps going right?)
« Last Edit: March 06, 2008, 07:54:26 pm by caramel »

Ahmad

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1296
  • *dreamy sigh*
  • Respect: +15
Re: help
« Reply #27 on: March 06, 2008, 08:02:15 pm »
0
If you add together the terms of a sequence, you get a series. You're right, in this case the series would diverge, but that isn't always the case. This occurs for example with f(n) = (1/2)^n.

And yes, ... means it keeps going.
Mandark: Please, oh please, set me up on a date with that golden-haired angel who graces our undeserving school with her infinite beauty!

The collage of ideas. The music of reason. The poetry of thought. The canvas of logic.


cara.mel

  • Guest
Re: help
« Reply #28 on: March 06, 2008, 08:03:57 pm »
0
So in those does n go from 1-> infinity, and you keep subbing in new numbers?

What is a sequence and a series

midas_touch

  • Victorian
  • Forum Leader
  • ****
  • Posts: 797
  • Serial Trout Slapper
  • Respect: +4
Re: help
« Reply #29 on: March 06, 2008, 08:24:44 pm »
0
http://en.wikipedia.org/wiki/Taylor%27s_series#List_of_Taylor_series_of_some_common_functions

how did they know to change it for each one. how did they get it from the first one way at the top of the article. it doesnt make sense.

how does a series work. i have been told i should know that from year 11 so im dumb.

The first time I was taught series was last year at uni, so dont worry. Simply, a series is an infinite sum of terms. In the case of the Taylor series, this gives a polynomial representation of a particular function, since each term in the series is a polynomial.
Some snippets of what goes on in IRC:

Quote
<chath> ill say " i wont let you go until u kiss me bitch"

Quote
<@enwiabe> i have the BEST orgasms when i'm working through a math problem


Quote
<@mark_alec> my bikini line however, is most important

Are you scared yet?