How to write a recursive function

How to write a recursive function - Сообщения

#1 Опубликовано: 23.10.2011 10:33:59
laikluk

laikluk

0 сообщений из 3 понравились пользователям.

Группа: User

I have such functions.

http://fotofotki.pl/images/bxt2v5bg1knu40h98psf.jpg

How to write a recursive function.
#2 Опубликовано: 24.10.2011 04:57:43
laikluk

laikluk

0 сообщений из 3 понравились пользователям.

Группа: User

It can be assumed that the delta t, delta theta is equal to the 20th
The next step is to check the condition (ca) and then calculate the delta theta.
And so to the end of the range t
Can somehow save the studio smath
#3 Опубликовано: 28.10.2011 02:45:50
Edward Ulle

Edward Ulle

20 сообщений из 182 понравились пользователям.

Группа: Moderator

laikluk,

As you can see you can write recursive functions in SMath. You have to include a test for a terminating value otherwise it will continue to call itself.

I've provide an example of the greatest common denominator and tested against some values from the internet. Good luck with your function.


Ed
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений