Saṅkrānti Calculation: true Sun-এর 30° crossing ও exact ingress root

সূর্যসিদ্ধান্তীয় true Sun-এর প্রতি ৩০° রাশি crossing থেকে সংক্রান্তির exact root, 360° wrap, deśāntara/local time, Bengali month-start এবং modern printed-fit profile isolation-এর C# পদ্ধতি।

একটি calendar cell-এ “সংক্রান্তি” লেখা দেখলে সেখানে অন্তত তিনটি data আছে: astronomical ingress instant, location-specific local time এবং সেই ingress কোন civil/Panjika day-এ নতুন মাস প্রয়োগ করেছে। এগুলো এক field-এ মিশিয়ে রাখলে research report ও daily calendar দুইটিই অস্পষ্ট হয়।

সংক্রান্তি কী?

True nirayaṇa solar longitude λS(t)। Sun যখন একটি রাশির শেষ সীমা অতিক্রম করে পরবর্তী রাশিতে প্রবেশ করে, সেই exact instant সংক্রান্তি:

λS(tk) = 30° × k

k = 0,1,2,…,11; longitude modulo 360°

উদাহরণ:

  • 0° — মেষ সংক্রান্তি;
  • 90° — কর্কট সংক্রান্তি;
  • 180° — তুলা সংক্রান্তি;
  • 270° — মকর সংক্রান্তি।

এটি solar ingress event। বাংলা সৌর মাসের নাম, প্রথম displayed দিন, পুণ্যকাল বা সংক্রান্তি-পুরুষের ফল—সবই event-এর ওপর পরবর্তী rule layer।

১২টি Target, রাশি ও বাংলা সৌর মাস

Targetপ্রবেশ রাশিসংক্রান্তিশুরু হওয়া বাংলা সৌর মাস
0° / 360°মেষমেষ সংক্রান্তিবৈশাখ
30°বৃষবৃষ সংক্রান্তিজ্যৈষ্ঠ
60°মিথুনমিথুন সংক্রান্তিআষাঢ়
90°কর্কটকর্কট সংক্রান্তিশ্রাবণ
120°সিংহসিংহ সংক্রান্তিভাদ্র
150°কন্যাকন্যা সংক্রান্তিআশ্বিন
180°তুলাতুলা সংক্রান্তিকার্তিক
210°বৃশ্চিকবৃশ্চিক সংক্রান্তিঅগ্রহায়ণ
240°ধনুধনু সংক্রান্তিপৌষ
270°মকরমকর সংক্রান্তিমাঘ
300°কুম্ভকুম্ভ সংক্রান্তিফাল্গুন
330°মীনমীন সংক্রান্তিচৈত্র

বর্তমান Sun থেকে পরবর্তী Target

Current normalized true Sun L, 0° ≤ L < 360°:

Current rāśi index r = floor(L/30°)

Unwrapped next target Q = (r+1) × 30°

Target rāśi index = (r+1) mod 12

L = 265° হলে r = 8 বা ধনু এবং Q = 270°—মকর সংক্রান্তি। L = 355° হলে r = 11, Q = 360°; target rāśi index 0—মেষ। Search-এর আগে Q-কে 0° করবেন না।

Exact boundary ownership

L ঠিক 270° হলে Sun ইতিমধ্যে মকরে প্রবেশ করেছে। “Current or next Saṅkrānti” API-তে equality policy স্পষ্ট করুন:

  • FindAtOrAfter(t) exact boundary-তে বর্তমান event ফেরাতে পারে;
  • FindStrictlyAfter(t) epsilon পরে search শুরু করে পরবর্তী 300° event ফেরাবে;
  • daily event scanner [sunrise,nextSunrise) ownership ব্যবহার করবে।

True Sun-এর speed variable হলেও direct ও monotonic। একটি short bracket-এ base longitude-এর তুলনায় forward-unwrapped longitude:

Lᵤ(t) = L₀ + normalize(L(t) − L₀)

Algorithm:

  1. start instant-এ true Sun L₀ এবং target Q নিন;
  2. এক দিন step-এ Lᵤ ≥ Q হওয়া পর্যন্ত bracket করুন;
  3. প্রতিটি trial instant-এ true Sun পুনর্গণনা করুন;
  4. bisection বা Brent দিয়ে bracket refine করুন;
  5. root-এ angular residual ও target rāśi verify করুন;
  6. absolute ahargana/JD event সংরক্ষণ করুন।

Remaining degree ÷ mean daily motion একটি useful guess; final published time নয়। Manda correction-এর কারণে instantaneous solar speed বদলায়।

মীন থেকে মেষ: 360° Wrap

মীন সংক্রান্তির পরে Sun 330°–360° interval-এ থাকে। মেষ ingress-এর target unwrapped 360°। Boundary পেরিয়ে normalized longitude 0° হলে:

L₀ = 359°; L(t) = 1°

normalize(1°−359°) = 2°

Lᵤ(t) = 359° + 2° = 361°

তাই 360° target crossed হয়। Root-এর stored normalized longitude 0° হতে পারে, কিন্তু diagnostic target 360° রাখা উচিত। এতে Meṣa wrap regression সহজ হয়।

Worked Example: অহর্গণ 1000

Article 71-এর verified state:

Quantityমান
Evaluation ahargana1000.000000000
True Sun265.921211747°
Current rāśiধনু, index 8
Next target270°
Target rāśiমকর, index 9
Eventমকর সংক্রান্তি
বাংলা সৌর মাসমাঘ

True Sun root solve করলে:

Saṅkrānti ahargana = 1003.987629247

Evaluation instant থেকে = 3 দিন 23 ঘণ্টা 42 মিনিট 11.17 সেকেন্ড পরে

Root true Sun = 270.000000000°

Angular residual ≈ 2.27 × 10⁻¹³°

এই value astronomical event instant। “১ মাঘ” কোন local civil date-এ হবে, তা নিচের month-start rule layer নির্ধারণ করবে।

Reference Code থেকে Reconstruction

pancanga3.14-এর find_samkranti:

  • bracket-এর দুই true-Sun longitude নেয়;
  • প্রতিটি longitude-কে 30° modulo-তে নামায়;
  • midpoint longitude boundary-এর আগে না পরে তা দেখে bracket অর্ধেক করে;
  • width epsiron হলে root ফেরায়;
  • set_samkranti পরে deśāntara যোগ করে local traditional time বানায়।

Modulo-30 method compact, কিন্তু caller-কে crossing bracket দিতে হয়। Modern reconstruction unwrapped absolute target Q রাখে; এতে কোন rāśi target, 360° wrap ও residual trace সরাসরি দেখা যায়।

Deśāntara, Timezone ও Local Clock

Traditional code reference meridian—যেমন Ujjain—থেকে local longitude-এর পার্থক্যকে day fraction হিসেবে ব্যবহার করে:

deśāntara = (local longitude − reference longitude) / 360 day

এটি longitude-based local-time correction। আধুনিক civil timezone একই জিনিস নয়:

স্তরকী সংশোধন করেDST?
DeśāntaraReference meridian থেকে স্থানীয় দ্রাঘিমানা
Timezone offsetUTC থেকে legal civil clockZone rule অনুযায়ী
Equation of timeMean solar বনাম apparent solar timeনা

একই event-এ deśāntara এবং timezone offset অন্ধভাবে দুবার যোগ করবেন না। Core event absolute JD/UT-like chronology-তে রাখুন। তারপর নির্বাচিত output profile স্পষ্টভাবে একটি conversion path নেবে:

  • historical traditional local solar-time reconstruction; অথবা
  • modern timezone/DST-aware civil clock display।

Research report-এ উভয় দেখাতে হলে label দিন—“traditional local correction” এবং “civil zoned time”।

সংক্রান্তি Instant থেকে বাংলা মাসের প্রথম দিন

Astronomical crossing ঘটলেই সেই civil date স্বয়ংক্রিয়ভাবে ১ তারিখ নয়। এই project-এর declared Bagchi-oriented rule profile:

স্থানীয় সংক্রান্তিসাধারণ প্রয়োগ
Sunrise-এর পরে, midnight-এর আগেপরবর্তী sunrise-দিনে নতুন মাস
Midnight-এর পরেতার পরের sunrise-দিন—অর্থাৎ third-day pattern
Midnight-এর ±24 মিনিট windowSunrise তিথি সংক্রান্তি পর্যন্ত থাকে কি না দেখে next/third day
কর্কট বিশেষ ruleপরবর্তী দিন
মকর বিশেষ ruleতৃতীয় দিন

এটি project-specific traditional-fit rule, universal Indian calendar rule নয়। অন্য publisher বা region-এর জন্য rule profile আলাদা হতে পারে। Event service শুধু Saṅkrānti instant দেবে; BengaliMonthStartRuleService local sunrise, midnight, tithi ও exception profile নিয়ে first day নির্ধারণ করবে।

চারটি আলাদা output field

  • SankrantiInstant—astronomical root;
  • SankrantiLocalTime—location clock;
  • AppliedFirstDay—বাংলা ১ তারিখের sunrise-day;
  • AppliedRuleTrace—কেন next বা third day।

নির্ধারণের পৃথক provider-এ প্রয়োগ হবে। তিথি, নক্ষত্র, করণ, যোগ, অন্যান্য গ্রহের position, historical traditional research এবং lunar month engine অপরিবর্তিত থাকবে।

C# 5/.NET Framework 4 Implementation

নিচের core code Article 71-এর traditional CalculateLuminaries ব্যবহার করে। Profile isolation পরের subsection-এ।

public sealed class SankrantiEvent
{
    public double Ahargana { get; set; }
    public int SourceRashiIndex { get; set; }
    public int TargetRashiIndex { get; set; }
    public double UnwrappedTargetLongitude { get; set; }
    public double TrueSunLongitude { get; set; }
    public double ResidualDegrees { get; set; }
    public string SankrantiName { get; set; }
    public string BengaliMonthName { get; set; }
    public string ProfileId { get; set; }
}

static readonly string[] RashiNames =
{
    "মেষ", "বৃষ", "মিথুন", "কর্কট", "সিংহ", "কন্যা",
    "তুলা", "বৃশ্চিক", "ধনু", "মকর", "কুম্ভ", "মীন"
};

static readonly string[] BengaliSolarMonths =
{
    "বৈশাখ", "জ্যৈষ্ঠ", "আষাঢ়", "শ্রাবণ", "ভাদ্র", "আশ্বিন",
    "কার্তিক", "অগ্রহায়ণ", "পৌষ", "মাঘ", "ফাল্গুন", "চৈত্র"
};

Traditional solar-longitude provider

public interface ISankrantiSunProvider
{
    double TrueSun(double ahargana, int targetRashiIndex);
    string ProfileId { get; }
}

public sealed class TraditionalSankrantiSunProvider
    : ISankrantiSunProvider
{
    public double TrueSun(double ahargana, int targetRashiIndex)
    {
        return CalculateLuminaries(ahargana).TrueSun;
    }

    public string ProfileId
    {
        get { return "traditional"; }
    }
}

Forward-unwrapped Sun

static double UnwrappedSun(
    double ahargana,
    double baseSun,
    int targetRashiIndex,
    ISankrantiSunProvider provider)
{
    double current = provider.TrueSun(
        ahargana, targetRashiIndex);
    return baseSun + Normalize360(current - baseSun);
}

Next Saṅkrānti root

static SankrantiEvent FindNextSankranti(
    double startAhargana,
    ISankrantiSunProvider provider)
{
    // First pass determines the target using the same profile.
    double initial = provider.TrueSun(startAhargana, 0);
    int sourceRashi = (int)Math.Floor(initial / 30.0);
    int targetRashi = (sourceRashi + 1) % 12;

    // Re-evaluate because a month-specific provider may use targetRashi.
    double baseSun = provider.TrueSun(
        startAhargana, targetRashi);
    sourceRashi = (int)Math.Floor(baseSun / 30.0);
    targetRashi = (sourceRashi + 1) % 12;
    double target = (sourceRashi + 1) * 30.0;

    double left = startAhargana;
    double right = left;
    bool bracketed = false;

    for (int day = 1; day <= 40; day++)
    {
        right = startAhargana + day;
        if (UnwrappedSun(right, baseSun,
            targetRashi, provider) >= target)
        {
            bracketed = true;
            break;
        }
        left = right;
    }

    if (!bracketed)
        throw new InvalidOperationException(
            "পরবর্তী সংক্রান্তি ৪০ দিনের মধ্যে পাওয়া যায়নি।");

    while (right - left > 1e-8)
    {
        double middle = (left + right) / 2.0;
        if (UnwrappedSun(middle, baseSun,
            targetRashi, provider) >= target)
            right = middle;
        else
            left = middle;
    }

    double root = (left + right) / 2.0;
    double sun = provider.TrueSun(root, targetRashi);
    double residual =
        UnwrappedSun(root, baseSun, targetRashi, provider) - target;

    return new SankrantiEvent
    {
        Ahargana = root,
        SourceRashiIndex = sourceRashi,
        TargetRashiIndex = targetRashi,
        UnwrappedTargetLongitude = target,
        TrueSunLongitude = sun,
        ResidualDegrees = residual,
        SankrantiName = RashiNames[targetRashi] + " সংক্রান্তি",
        BengaliMonthName = BengaliSolarMonths[targetRashi],
        ProfileId = provider.ProfileId
    };
}

Month-specific provider-এ target নির্বাচন chicken-and-egg সমস্যা তৈরি করতে পারে। Production implementation-এ correction lookup target-এর সম্ভাব্য index দিয়ে stable কি না পরীক্ষা করুন; re-evaluation source rāśi বদলালে explicit iteration বা precomputed target context ব্যবহার করুন। Traditional provider-এ দুই evaluation অভিন্ন।

CalculateSankrantiSunWithStarCorrection একটি isolated engine entry point হবে, যেখানে cloned/year-local constants-এর star value adjust হয়। Global yr dictionary mutate করবেন না; তা parallel request-এ অন্য calculation দূষিত করতে পারে।

একটি Solar Year-এর ১২টি Event

static List<SankrantiEvent> BuildSankrantiCycle(
    double firstSearchAhargana,
    ISankrantiSunProvider provider)
{
    var result = new List<SankrantiEvent>();
    double cursor = firstSearchAhargana;
    const double oneSecond = 1.0 / 86400.0;

    while (result.Count < 12)
    {
        SankrantiEvent e = FindNextSankranti(cursor, provider);
        result.Add(e);
        cursor = e.Ahargana + oneSecond;
    }

    return result;
}

Cycle শুরু কোন target থেকে তা caller নির্ধারণ করবে। Bengali year report-এর জন্য Mesha event anchor করে পরবর্তী ১১টি event নিন; arbitrary cursor থেকে ১২টি নিলে list একটি ভিন্ন rāśi দিয়ে শুরু হতে পারে।

Historical ও Multi-location Safety

Saṅkrānti root geocentric true-Sun model-এর absolute event। Same profile-এ event JD location-independent; local label location-dependent।

  • core ahargana/JD রাখুন;
  • timezone ID দিয়ে modern local clock বানান;
  • traditional report-এ declared deśāntara path দিন;
  • early date-এ Julian/Gregorian dual labels দেখান;
  • 1582/1752 civil skips root chronology-তে ঢোকাবেন না;

Regression ও Boundary Tests

[TestMethod]
public void Ahargana1000_NextTraditionalSankranti()
{
    var provider = new TraditionalSankrantiSunProvider();
    SankrantiEvent e = FindNextSankranti(1000.0, provider);

    Assert.AreEqual(8, e.SourceRashiIndex);  // Dhanu
    Assert.AreEqual(9, e.TargetRashiIndex);  // Makara
    Assert.AreEqual(270.0,
        e.UnwrappedTargetLongitude, 1e-12);
    Assert.AreEqual(1003.987629247, e.Ahargana, 1e-9);
    Assert.AreEqual(270.0, e.TrueSunLongitude, 1e-9);
    Assert.AreEqual("মকর সংক্রান্তি", e.SankrantiName);
    Assert.AreEqual("মাঘ", e.BengaliMonthName);
    Assert.AreEqual("traditional", e.ProfileId);
    Assert.IsTrue(Math.Abs(e.ResidualDegrees) < 1e-7);
}

Required test suite

  • প্রতিটি 30° target-এর দুই পাশ;
  • exact boundary-তে at-or-after বনাম strictly-after policy;
  • মীন→মেষ target 360°, stored longitude 0°;
  • ১২ event target order cyclic;
  • successive event JD strictly increasing;
  • প্রতি event residual tolerance-এর মধ্যে;
  • same absolute event বিভিন্ন location-এ same JD;
  • local time timezone/DST অনুযায়ী আলাদা;
  • traditional deśāntara ও civil timezone double-applied নয়;
  • modern profile তিথি/নক্ষত্র/করণ/যোগে প্রভাব ফেলে না;
  • month-start next/third-day এবং special exceptions;
  • historical dual-calendar labels একই event JD share করে।

Profile-leak test

[TestMethod]
public void ModernFit_DoesNotChangeTithiPipeline()
{
    LuminaryState before = CalculateLuminaries(1000.0);
    var provider = new ModernPrintedFitSunProvider(2026);
    FindNextSankranti(1000.0, provider);
    LuminaryState after = CalculateLuminaries(1000.0);

    Assert.AreEqual(before.TrueSun, after.TrueSun, 0.0);
    Assert.AreEqual(before.TrueMoon, after.TrueMoon, 0.0);
}

সাধারণ ভুল ও লক্ষণ

ভুললক্ষণসমাধান
Mean Sun ব্যবহারIngress time driftTrue Sun
Tropical Sunনিরয়ণ পঞ্জিকার সঙ্গে systematic mismatchDeclared nirayaṇa profile
Rounded longitude থেকে crossingBoundary কয়েক মিনিট ভুলRaw precision root
Fixed 30.44-day monthEvent time accumulate driftপ্রতি target solve
মেষ target 0°Wrap search failUnwrapped 360°
সংক্রান্তি date = বাংলা ১ তারিখMonth start এক/দুই দিন ভুলSeparate rule service
Deśāntara + timezone দুবারঘণ্টার বড় mismatchSingle declared conversion path
Modern-fit global constants mutateConcurrent/random Panchanga errorImmutable isolated provider
Modern correction সব Panchanga-তেTithi/Yoga/planet positions বদলে যায়Saṅkrānti-only profile
1947 cutoff historical export-এ অঘোষিতSeries discontinuityProfile ID ও cutoff trace
Local DateTime rootDST/1582/early-year errorJD/ahargana core

Production trace-এ রাখুন

  • profile ID ও correction-table version;
  • evaluation ahargana/JD;
  • raw true Sun ও source rāśi;
  • target rāśi ও unwrapped longitude;
  • bracket endpoints, iterations ও residual;
  • absolute event JD;
  • traditional deśāntara বা timezone conversion path;
  • timezone ID, offset ও DST;
  • local sunrise/midnight context;
  • Bengali month-start applied rule;
  • traditional বনাম modern-fit comparison delta।

Production Checklist

  1. True nirayaṇa Sun?
  2. 30° target exact?
  3. Target unwrapped?
  4. Root bracketed ও refined?
  5. Residual verified?
  6. মীন→মেষ wrap tested?
  7. Absolute event ও local time পৃথক?
  8. Deśāntara/timezone path declared?
  9. বাংলা first-day rule আলাদা service?
  10. কর্কট/মকর exceptions tested?
  11. Modern-fit cutoff 1947?
  12. Correction target-rāśi keyed?
  13. Non-Saṅkrānti calculations untouched?
  14. Historical dual-calendar regression pass?

উপসংহার

সংক্রান্তির astronomical core অত্যন্ত পরিষ্কার: true nirayaṇa Sun-এর পরবর্তী 30° target crossing-এর exact root। কিন্তু production পঞ্জিকায় এই root-এর পরে location conversion, Bengali month-start assignment এবং optional printed-modern-fit profile আসে।

Absolute event, local clock, applied first day ও rule trace পৃথক রাখলে একই engine historical traditional research, আধুনিক printed-Panjika comparison, Dhaka/Kolkata/New York daily pages এবং batch HTML/XML export—সব জায়গায় নির্ভরযোগ্য থাকে। Modern-fit table কেবল Saṅkrānti/Bengali solar date provider-এ সীমাবদ্ধ রাখাই profile integrity-এর প্রধান শর্ত।

পরবর্তী প্রবন্ধে Sunrise Calculation দেখানো হবে—solar declination, equation of time, local hour angle, horizon convention, refraction এবং sunrise-to-sunrise পঞ্জিকা-দিন নির্মাণ।

প্রাথমিক পাঠ ও তথ্যসূত্র

  1. Ebenezer Burgess, Translation of the Sûrya-Siddhânta: A Text-book of Hindu Astronomy, 1858/1860; true Sun, solar motion ও local-time relations-এর public-domain translation।
  2. Yano–Fushimi pancanga3.14 source; find_samkranti, set_samkranti, modulo-30 root এবং deśāntara flow-এর executable reference।
  3. সূর্য সিদ্ধান্ত পঞ্জিকা গবেষণা প্রকল্পের printed-Panjika comparison dataset; 1947 cutoff ও month-keyed Saṅkrānti star-correction profile।

পাঠকের কণ্ঠ

প্রশ্ন ও আলোচনা 0

যেকোনো মন্তব্য বা উত্তরে আবার উত্তর দিন। প্রতিটি উত্তর তার মূল আলোচনার সঙ্গে থাকবে।

আলোচনাটি আপনিই শুরু করুন

এই প্রবন্ধ নিয়ে আপনার প্রশ্ন বা মতামত লিখুন।

আলোচনায় যোগ দিন

আপনার প্রশ্ন বা মতামত

সম্পাদকের অনুমোদনের পর আপনার মন্তব্য প্রকাশিত হবে।