Author Topic: Changes / Additions to astrobasic  (Read 96 times)

0 Members and 1 Guest are viewing this topic.

Jean

  • Administrator
  • Jr. Member
  • *****
  • Posts: 64
    • View Profile
Changes / Additions to astrobasic
« on: July 20, 2020, 04:20:08 PM »
20 july 2020

This topic is exclusively for changes and additions to the astrobasic language.
Greetings from Groningen Netherlands <)))><.`.><(((>

Jean

  • Administrator
  • Jr. Member
  • *****
  • Posts: 64
    • View Profile
Re: Changes / Additions to astrobasic
« Reply #1 on: July 21, 2020, 11:21:33 PM »
Added two commands for providing upper / lower bounds to updownx(), so the value won't go below a minimum or above a maximum

command(UPDOWN, a, 10, b); `a = number of the updownx, b = minimum value
command(UPDOWN, a, 11, b);` a = number of the updownx, b = maximum value

a and b are integer values.
Greetings from Groningen Netherlands <)))><.`.><(((>

Jean

  • Administrator
  • Jr. Member
  • *****
  • Posts: 64
    • View Profile
Re: Changes / Additions to astrobasic
« Reply #2 on: August 02, 2020, 11:34:38 AM »
These are for classical scripts.
getbound() has changed, and two commands were added, getsect() and getalmutens().
From the help:

[getbound]
getbound

Syntax int getbound(int mode, int n, bool sect)
Action: mode =
0, returns the egyptian bound for longitude n,
1 the ptolemaic bound.
2 returns face
3 returns triplicity, this one needs sect
4 chaldean, this one needs sect
5 valens, this one needs sect
6 Lilly
7 exaltations
8 detriment
9 fall
10 ruler
11 if sect trip_noct else lillyDiur

[getsect]
Syntax: getsect(real sun, real asc);
Action: returns sect

[getalmuten]
Syntax: getalmuten(real long, char bounds, char sect, char trip, int res[3]);
Action: returns number of almuten for longitude and fills res[] with the almutens.
 
bounds:
0 egypt
1 ptolemeus
2 chaldean
3 lilly
triple

0 sect based triple
1 lilly triple
2 triple triple

Greetings from Groningen Netherlands <)))><.`.><(((>