/* Ċ ĠCopyright Ġ 2 0 2 1 ĠSpl endo ĠConsult ing ĠB . V . ĠThe ĠNe therlands ĊĊĠĠĠ ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); ĊĠĠĠ Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . ĊĠĠĠ ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat ĊĊĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 ĊĊĠĠĠ ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware ĊĠĠĠ Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , ĊĠĠĠ ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . ĊĠĠĠ ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand ĊĠĠĠ Ġlimitations Ġunder Ġthe ĠLicense . ĊĊ Ġ*/ Ċ Ċ package Ġcom . spl endo . kal uga . scientific . converter . radio activity Ċ Ċ import Ġcom . spl endo . kal uga . base . utils . Decimal Ċ import Ġcom . spl endo . kal uga . base . utils . times Ċ import Ġcom . spl endo . kal uga . base . utils . to Decimal Ċ import Ġcom . spl endo . kal uga . scientific . Default Sc ientific Value Ċ import Ġcom . spl endo . kal uga . scientific . Physical Quantity Ċ import Ġcom . spl endo . kal uga . scientific . Sc ientific Value Ċ import Ġcom . spl endo . kal uga . scientific . by Div iding Ċ import Ġcom . spl endo . kal uga . scientific . unit . Amount Of Sub stance Ċ import Ġcom . spl endo . kal uga . scientific . unit . Av og ad ro Constant Ċ import Ġcom . spl endo . kal uga . scientific . unit . Radio activity Ċ import Ġcom . spl endo . kal uga . scientific . unit . Time Ċ import Ġkotlin . jvm . Jvm Name Ċ import Ġkotlin . math . ln Ċ Ċ @ Jvm Name (" radio activity From Sub stance And Half Life Default ") Ċ fun Ġ< ĊĠĠĠ ĠAmount Of Sub stance Unit Ġ: ĠAmount Of Sub stance , ĊĠĠĠ ĠTimeUnit Ġ: ĠTime , ĊĠĠĠ ĠRadio activity Unit Ġ: ĠRadio activity ĊĠĠĠ Ġ> ĠRadio activity Unit . radio activity ( ĊĠĠĠ Ġsub stance : ĠSc ientific Value < Physical Quantity . Amount Of Sub stance , ĠAmount Of Sub stance Unit >, ĊĠĠĠ Ġhalf Life : ĠSc ientific Value < Physical Quantity . Time , ĠTimeUnit > Ċ ) Ġ= Ġradio activity ( sub stance , Ġhalf Life , Ġ:: Default Sc ientific Value ) Ċ Ċ @ Jvm Name (" radio activity From Sub stance And Half Life ") Ċ fun Ġ< ĊĠĠĠ ĠAmount Of Sub stance Unit Ġ: ĠAmount Of Sub stance , ĊĠĠĠ ĠTimeUnit Ġ: ĠTime , ĊĠĠĠ ĠRadio activity Unit Ġ: ĠRadio activity , ĊĠĠĠ ĠValue Ġ: ĠSc ientific Value < Physical Quantity . Radio activity , ĠRadio activity Unit > ĊĠĠĠ Ġ> ĠRadio activity Unit . radio activity ( ĊĠĠĠ Ġsub stance : ĠSc ientific Value < Physical Quantity . Amount Of Sub stance , ĠAmount Of Sub stance Unit >, ĊĠĠĠ Ġhalf Life : ĠSc ientific Value < Physical Quantity . Time , ĠTimeUnit >, ĊĠĠĠ Ġfactory : Ġ( Decimal , ĠRadio activity Unit ) Ġ-> ĠValue Ċ ) Ġ= Ġby Div iding ( ĊĠĠĠ ĠDefault Sc ientific Value ( ĊĠĠĠĠĠĠĠ Ġsub stance . decimal Value Ġ* ĠAv og ad ro Constant Ġ* Ġln ( 2 . 0 ). to Decimal (), ĊĠĠĠĠĠĠĠ Ġsub stance . unit ĊĠĠĠ Ġ), ĊĠĠĠ Ġhalf Life , ĊĠĠĠ Ġfactory Ċ ) Ċ