Kitonum

12724 Reputation

17 Badges

10 years, 280 days

MaplePrimes Activity


These are answers submitted by Kitonum

Should be


 

``

restart

``

t0 := 2

2

(1)

t := 4

4

(2)

f := proc (u, s) options operator, arrow; cos(u+s)^2*u^2 end proc

proc (u, s) options operator, arrow; cos(u+s)^2*u^2 end proc

(3)

evalf(int(int(f(u, s), u = 0 .. s), s = t0 .. t))

10.55164212

(4)

evalf(int(int(f(u, s), s = piecewise(`and`(u > 0, u < t0), t0, u) .. t), u = 0 .. t))

10.55164212

(5)

``


Here is the plot of integration domain:

plot(s, s = 2 .. 4, filled, view = [0 .. 5, 0 .. 5], labels=[s,u]);

                       

Download order_integration_new.mw

 

Addition. This integral is easy to calculate symbolically in two ways:

NULL

restart

t0 := 2

2

(1)

t := 4

4

(2)

f := proc (u, s) options operator, arrow; cos(u+s)^2*u^2 end proc

proc (u, s) options operator, arrow; cos(u+s)^2*u^2 end proc

(3)

int(int(f(u, s), u = 0 .. s), s = t0 .. t)

43/4+(11/64)*sin(4)^2-(1/8)*sin(2)^2+(7/16)*cos(4)^2-(3/8)*cos(4)*sin(4)-(3/64)*sin(8)^2-(31/16)*cos(8)^2+(3/4)*cos(8)*sin(8)

(4)

int(int(f(u, s), s = piecewise(`and`(u > 0, u < t0), t0, u) .. t), u = 0 .. t)

10+(1/16)*cos(4)+(17/128)*cos(8)-(3/16)*sin(8)-(121/128)*cos(16)+(3/8)*sin(16)

(5)

simplify(%-`%%`)

0

(6)

``

 

Download order_integration_new1.mw

 Maple simply shows the first few and last few digits of the numerator and denominator of this gigantic fraction. If you are confused by the incorrect seventh digit in the numerical calculation, then simply increase Digits . It is never guaranteed that when calculating (with  Digits=10 by default) all 10 digits are correct.
 

Digits:=20:
15000*(1+0.06/365)^(10*365);

27330.434318076693573

(1)

A:=15000*(1+6/100/365)^(10*365);

222406574698332122252435250830971079503943966893899873061010046112552630386259069637401685560212442917795013591225887980595139392977942373648583009607152484196288175881662161000873006724193107817008634986884016681549315797983674475302952167687296010115423998058937792545156123135128514085376222936956534333661467709603943267166817591050759125546378556021509953431101387162806390748642747962856263376307054999116860242062607946155746045904160110990071231954857053096312538669049301666746282473956165966497879029133028691718788485086812837024895232035254639550611117049172604061373331006912235687880099025714589601293060514923534290333511251452140293881044936627200448629695211482895001880049260169191927167342479479236886987137149964448841700595909460953599335194796501180977937648318175180157907732467615604094544385214458910929891111847123759167082019907430640540350623267594971204709189710261831545091748869095291729975144261647316400962769284835441943582626035150663464597787364430338223929720923238502448310112020523937636008082726994904819729390936904119060846937119553380020429506055435870235335254061430422351523012214272732861156988490647735495073539314877486937249655384391301837275948731251581834151532207163735877722871442328906644413198196889059753795342384784078186480360731780088155355458920343544223415904549149748035172518093778481790482849130732863807784301964752474260738143485917903534737864411332211543233784928270758575196545793147842189937192150824218804236085105191181917342251940582780197196779519298044431252977702914709151592127519378707772486346920404971572114652856758294842539760561616310268481515473737363688337206177669914703396977881074896084977017165419585427032136472760844546786353026960565531827138818677943017097537272815178970847268611859793101155711073707740721584457948767235920715040972090332517740056445315902885625629808893430007350961474779193927118945331561003191569998722433876081130363253839520370072564213723621253425605261869070320962584857230507810895977329421170894904961948343587143770370689193309835745879075358851165220387308715536375180076380255433286787176995149557274104842483295688489894859320728917418866942116425232759113443986203732807147730945385350492006123763548212992787028665476880501250977721601961393196150518389881729168772948729883426394922406485504360280616777232947315507696726839269579739847308703604260014847035322128312298780682710516409873194600955083362851926296501397304085517212328719911059982233640816138530975008151768353235610360232662788219993113946672699272557475586569459920974485754245424535353903510498201199351133673179879748906980045993782023409802375818032995057510162435156275251180224997831772365233537166850479847285103969806949958891107933737270685892320596268117738112063687748695389534244965867661137560384481728016072205662552013142353271771712337783182196593680751213695619183305018307851548271681777197482472766541679572242707672333482319919863289034453051634927325273564984182516553972202376109768414693268791389486618663556015999264997095347265094253155141139564111623831306098316559653318920263800909694555852401552402450307556013264847826109118559062139036892386367314493525963480863759220130784198303488431641119519305452907378565425513738571766860045298212350743247223204093768071976246300102785119404385098912300362065687786207580444368224601497601000998582345914308739561896416146294464908380728966179836228987901854220223499196769050113126520028080068976677963659924709967608717058778522942859950521316776558529089740862489761185915705388631980089259692393828886296593806785720194578783711134978366212357916646503497496998716729938383390675564771377980748832154597027518269586404413536440121952663971714490606569787297990697213858692404490395112001728542423904399656568009670970325256122966826587438463156751360469398067386933787730615011963786947379743267850009545618358135781801779226266997434210955353095600351229830072780168228917350707179552339192413648622549789100955326307875629527519542384543284803420001977761252130380004740262242871541282356064134275569437379478955507813304220825526963021342376052471273104966645687787466842502355158190723393214815260348198905949946182156224475380919916830580733000360584451057547177732362307809049147941538940175867923362828634283553661909129258635663087280952061147718045222361168555578536448942995080136433437112381629019476095865781469478633712723065084356775847051571798406648838457153676177803404118847813175031124459169446431759115005943629880299542469409518189959080090491572299008569356193183465517863678514860583891653289219907718149306052148114684353645036977016348809828701049312019180233206384697288282427862075548509274218957376974780112167915876867249570308511420936909926349032725437186130562442929398167873011813181536831915817112112791611158139331914665096819011927665147659423950320687250875161607123628258455538800932426141141710742501085454223129438484127509003627500798775780775469252497787136191176533201004562722986874257020982037033617506276571172137616432834080308108445879753202564879932990209588696139920900636254561248970068021783043137454149680223316765291540035960699560917979012961868377889283833147230791595336045258519696048662681229019371966755895907242445914794000551844010415940792228928918576432807417774629180380170775538527761721232026668108672154310165632098588740891939953343053545815433654659631088349834300010978713628015457417366519255158032526386731585225736076781498772607282533329313871763478779963204747160611371730075466486514924567951018518913832166878354357684464626883018016032672171641820668296958031720140028671376252296321800426670705547375978353918363658403679865901388318558097923835917765408959476372621709650265797949857971101454387557260771346060582074219303314763857477273034718069652964656867197863169314604726533975585026477049243952307956047737153106596742766939290088022096155927241088033942802452968246984956676619058294934591763425556974700464326318645966773226301008062129801895355847365839769331210319059849974490591811399223607320287078761751472954484023648246412991564348144828202201367622576915797444082935248520151291858582574866280647205552554029700168599065132220226872301673968513372848841683837945264338920752337723260478714348670306410974510648962937516757952370933208226248331440431207300456208229701553502351851353849825071084860302097753663239748395636064527712316770204432682804036164319144997797843948204612906063866983917937493871553097322904769227366581476916050071636040437113740759750066774327586194717754254081557508925259231180359213773075795114886514027766333065845484459776492641356571344435375634184829546628760930084436118685209214014709308510456938110180614471287308095450698577706703120016969060493004287753943235635366383328081438998684654614587041152973124867718833033984931872227579158711140675779408012044785504611864850492334767173218037862194104525661390175432909212546601818315290194385060386628355760764547081830953525790514734534230355982821665932660531564331337952304730202462987958107397748834059634532295481182264386426083477698988178221000333265121715903737154732157268067902051316419919079112657244611395411623438533846262120989309860707120925164956411981995906355446140890555244076963797965366179972607642125322697884122256478679045953888051360823216612363319462741575562931909211019811099974776816010957433505100412412247668964691730567654062584019203538721085158564594597222751813132259480227589200885803632018273674268719806509146234928292915548738787813586631263851136542278845048608842086879626162840373968384382741217815675919615666387692157327316316839278997582324472245750506432481419378293384425442841307548120677504711890054237550252012755845760234370819761414626496456523610540894526977487179089752389027160957986148407262614917419262271369216027875503282762480361774203786654902193494713605167940169013995813757675159731006652596415874429511880170886211641353561313572053711139081516609102540310106988291980853334857353837618656159440464698613762128505012160762246884793764577009919384514081924170001919187530007887649520153462396005518278837630647495254676763491078458852496903701562687834087773169270963465329790169853538810863116266382388267822433218532446069638985653743675451199493021680691987922768798543251867219982947646107421701148028470153765380331863922832611095512846014316334128281775781500092293218290927420923049882580675612153273794965550743718943876201178991003064916137334659360758747985456674935433116973313824562470608354013516474032127652564736478900267155223731976048302192390994286268775116631453975226436690477945591240984241746791928463338174621000781884812198846361146482405593051751643444493346671440848252338737897429346830246671538713664662105560487736792734702116641031630087268441982878678831044349878279021154589430020137749034944713454546968233162088859048127073312368227126888330515785373641132834188631581413905738774635742839577961924603680592441473806738460953812666805886365706983897415282744642937644969695789819721281610281920617826350196914523796942742101597976637345612573030301339172451207517492132760768367121466053135751297041137557138245762159916522199453687192545922743057901175280275681826030101979046355209385788536540301770556389327858934877187477313849343001720986803829864447027231516541515039679435801547514757514638507030807758433111972177109508341499828419483987386257721145138397675116950429172888772676505920686415674636146029282806360843671312742066473625875304454414751424361103896140778201442005651480141572764304797426730644170122973186059025688228086237037443501025150266586862965763042060843960555888185554465262581718909854849625123709961043228157723025332510245392890883457903692826395633538660857389988320807524614945854061119128045400458455434869834511243565433912645606962926485942847154221862374863983142821536702541410282995646979992102357719498690834929427157377554177745916799564399251672110663394779238105013117066321255116911840091176817587424116146588082822804054821769446925764447143071252211413789013712876457299026099779018508919922103593395610447920837418392536992383209947881026958251736795548922089184802253914233178751390271241125108161130513513267636296163982929304715885723305280797151485423835753570990371939881363624066552682017489267375886025109676366419233847870996829049906485894301038408046185274176755425308949998891908114834695763189310501282096311822687960554701409897077090557551456104813119499268617730960102473524364780554543762106910427982056276789038059490657035657293892711413463766435427285150439869525175245929199079005354203780461427746842173827956708381766882393875816666079821041120471853464167045615292099740335082127924388544484234332449687577681449443228363428915442148912653879198861391156253045476347700545828142275188181152478904905724334351437081068629409036874337934399900237072843896279001831690715468684172118994007543509148603421143446361998253029633430731298246024584031642096786617866818040872790373298202034277134080947898509751887852267869348395240064542318939203636030265941585594901019458999910823984641373804384037951245683739142267284385456793290510955584977152045676864448517292187230749264548369627530215722805277324013555636994214362510571668875218123725855105692123274357848336303142542173860136698003664428434212977950830039426008789264905372495434590582966538152079251092855986417639229347332216328892761182843831287546517401529584618954528335729483263969021084839512006581169746793646409040291280169691237817424379909774388965245870536982646039368671502765560756302148701527872463458904781878264008888217590878826803322413772445588954919875863543246704949861680945454130787325632703572749800050626743157822921851726636931614595973271409163860280708398081245021538297729277140545975713014920782159381780021943492130512044627573901661398865728859204519150361243495701567726726494120440930254309787154349692871088672251448205206943378280513001166142372817576733578462650475724559791613053555734415532905507224199855629569914907102585307309073580369431312527968756777645114146943496463661152878780804080002940649907183119767579899840411516658859151243434451424554887805474021774646255805918968170521401927762859810746123469124618450220086357321104152469311660006081994701542411555059542359456636689073881499944140268991739359720825740520740107202540361757563000755995272882752958752218045216624759127347917255187222085489874658446916235766380524059866134431401191270505137401166976468336639761934374969475445487103658254852853286746964796680821105768771670075961707941699620413197627297844590694604196810203798940535276982067091411757123039215144577723499923408612721619793609250121392705405594134413777532615536462113660146934705743019085560102181959634080143769632311032648048584770304808663148502603311320211148253289762479843596075716500105524912492539602369117583632284232246055577975971607870499480169601568326688419512648681321772571343764556875848034557037427865522669540229726649437080548552590264856251932734482226780159371949568429693464826282901498822880938249251107588554261429293811728620749489127045511149476967919274100096046463539501697149480849794585010265848792911438675348411069968451304284899745864621413798111367474225545219334700874968171063572306654412948100018107208854256989775181336855244638373358898617774061413960970063260250558305514475725880246087682241734555545824568310014800254665106889066185964435711227109547574308793835008930644743842504674063816327100059429217103742348507783816700668006387194480852751314998193610130034976293801731673962130135762535226374496293001364292348249057776081032036186617369826656057116541684594922690541599687899922698692457045947764647475136512280239502990606864368789218532045445332213064147680849553911047164603459858292542456092948097901199748446087117706025255718997324327703128189507649490601828977948607867276801055643027670172602360650216167453232177596579965438082363247499205159073369732009117156797984928679543245640822704305566778230095270488075059898612101215012323656127798836788078362303118988959179011559257451222170823449394665769225911135448650254128225819647971607968628522736492325398215865422507370336611420411363091885353523583967227803260861001241775042434960676147217068741710747576146319672470508746034067277479676172947124267736151527978170470579461754789659193029038631049183465329603783539014939046691093612675011703829819028643147010188566325169382670521291175801506683052894482958431747748123289412842520259381561709844092156384413712414715771925204792577662733390609757042374863382360958563289988644563777505763936681451507256694568296019535054226436050555244587630648281254259734906744616234877772661281433812681699536311772521674262891745257081353878998439810559756247628233644412386586134501657109895716304151955603127701336722950156594616291152660088997169181495682394699945191269119211015231064017884109195688660723076818197470957885813275626951601412255473628913143885420102508306450524320916287774352478296128093450434604311985698789712824917700716257802715666894148952413210522878185128233277749787121061538699521714560599213973586462157560591114191843500104521677273505073924646261636779256624277686891834299354952594101274629844104436004452636914842781830081850099371773695320410272331623441543883436067265823446347141656867072087778841375616555901996369921833043087778132615709813306871271108191915837793490276580278888603751528362955915868143254840015129356182725679625064985085269667268654185352755425029940192983487296642431534501069836634747/8137688999374210400742450078333128773280184861428227630587859098200986831045143621308131100133952804184633987689454188067827244560479765047945651869703050869405037908294202489199343275117759220413694748830543982052473056466775132877656264101704836697867849405678652304137240576630820624752979127484432850729045803061331879393920022092597642161156261189572945263475759887947376218498255876332232858622149530443019737854639576042969955439161486808267487195252716151217653060765036648431185058072630300639813385348595269743619994884679645424312504808681898046355793271157913111214544394429063035939922984200087157675508963848011018494714817334787927499580173609919531940471332055451112051290930900294623355165708452416097073993177218350832161111188455378476251134346605516620935276108772443413761826521754675332661312177484277899497798571305674273007538208614506805078813939529396109228534101992567307157816574180531770420929547231718709454279950954465727349348453665392623346209417105399708627461938429087343324643023323836728232193532431764396331916131695571238743315062744397808467808481086856261504395374702612155353582458453249293051602237841203987421724692290751140575709889918498938570949810437022379690902149730119872861941590497834107418345941171408763050737389750527857080697988820151123069583151066569808203989176859609540088195388694987704142154580446583942698184420463441464533468024437434714617259914970860258826292677386889423727088220288160605261318524865127012113219116948664477868649075665870607895993097947062102927183875999652541039317643993123381052680772087783764385901227304919925649349025557435428069012964281194249084652909329724167159507628206040274807383466771732395127186302017280736330375705908193505698033361773901846769541243935982013479882419361329056749854565648866485111876386719597489171323182378098888925952835219345310580383739969544285992525465435932110998284340668892779898612013656199914861967291036200987626227717358527207891596611785659356784978811315356446191948217379924765644571597769704167640227119373243311280915099952501729632556775145712335989780897619445509739710386636775114637311863185232517327373408932199124859722225766118384668399169797976259568405935931799061169510072218220617867074076927217421069669701010058554528813018401402418415801902940863348585830106296771396925789207780857163086546382866112427430757856926377786451030428316107077428187051061843311693722506865476498359444107320519258830694271107026502798689206304789108995544848306783322334659277886800158461951152277380123125556191068899325109091161173279724443335964458153012725726412035222415861142163936679050749142079282665015191256979855869246835068289598723417598470940389406139382416040803624596986739327319270360796289207598763346190394304191106734243364252539612531934697613336944356062146051937789444221879173116956078607855936657445580956130278380021329535155717292013954577840788104454435501448371465661819183887024068394997807654043799904379681108349484994973424862325177100467559401033515123447586335012159064636087363275086390027361895392252439301660654162604757654364606833751641873075197617358239735409085885028577743555258216335131534787966696721128694923438796930810833749199161136475181482577053056946884426735069182053927147876696953405752504042239824489926556743269835000368204013766916660674790876274863909426582050455360770223166195851663641777971244842404292111688931063755809542944245360643229639430022555039856232845705569639675665656009476751452308167674354325965405497138788907308722964380249285714322994927696399690719068094252628011537910217452552301228429111382727673652590878688965636147930111211643894349870692708490775355955912449908821515223628402339299225253156179359681145773504718328474837535984928970228942332830531474579210582352262886323939487480659135800190933620802118420081439236033990936639115600413511393855988260946238102423025069049044320832930382956677224820889826126497474311491861792715102214331157434592815450703499507975897644633186773408090954584614597169785886444331567996492078805078364233420754196710063871564084994570463203222409020905320332749038678982419730383510271541896907170355336880559786387114034915444885058186142702242331093193256426416996626969293023871706692527032683186422633573807948690067800884864987471700719591219545589652536860586647931421979487068847748116967314377246065541258511241423747610683751153444494666701948538572715022443590317850142906271457502777925561775550005149473684787748743880390626158607731686837301672948424076383303862942159733015947553623065123832023054378493254112728018265059804495987608383323725213402572745437876543900262083136638506052866446466722680196917450863200288802221858515058028599631084264301877085476805808303933681333639512458151812604643689533570162098742307572073161312250923969386003602512247926923837644797869776408110960290303026127854612806190467469174128294857170679190789751367142897768933801435016915963083231884324246753459185834117697742722200107725591272227672625697937410992992105410675539194175980726501014804747044397855960391623744009727674769876024844840753878009973706557336224783774561592009154630071759938760913038207732370969183944947213176729498056577457252897038386621956266242006817736018085040085334087533369302934409807316976477202749750340504845052793373821364767135160583401976739781662340209707577456072439101010243686261207484902229371048251750292983064492676352507307163999486550773064769467560534589096233217562213255112672360139353846896094795315404285110371390023988836217137438004606347879364730858921685549057420569010407901675955590516097855873352735587813383998911472021861443129329806485286997678349776641510837316139282096196656446578971696378687671124202647766485334486548871780257274993018345768679255853516954679224055089130162492258929514745329428546680942698435388911638614080217185920314769680947220701324908815420933999890595817692264868154807021720440245894405323987324516366482465399921073427465184456915178714076971528761140042616107975045040054911351457347290382729966879473553574561681239060291972883128862901755049080990386781263599542203947016606213382608103646854826825387743841809201769579250593675271669242928000591849447889310036327659960906139206180118530954851516873954858867877796425604732492338379535101935026946478267288676718013106513381962995772766663171340134706619253037972276154459735324461275224442160626638412201180032374537548093767322361106916834972738734571776264110352339852959671103683306897590667272310373740341230731795982845235478529821053783591527257236852303341162797124401114625061227595902270225289671234918889437350079984742799747852210550415898530680766985395557487310644085895156451351829797252998423102697480917938589366100840615858225426624200028953487858352068826991637035899683712231627650735727466992333694781847147297948577703549131043550279653568519560681915249516068739747070918754278497730999717320031635167687942437840842749321251215886383555795095039472265675853101126625200704887585825388314093952634775128387164814773201622876505443868301111339473601537514660128170278546837557631946325842236372274024074360183006855082811585457481618584150732322429481709483822078250624882478856898584236664540486047267653289051589771950151377112902484211942900167938442128339146779347831612050711359062306989047990904964252917636677579901232120205438029116561365632660407683757981640401403364380177436523213076129682781085135084108022478248589126614617140495032130503377136925678923462256353514811399758237233901922868800717144438968399143605750217298983346153938777347900197231092846814434888118755745749827755944674584530362993810464686501060520493560749563744046175353383852266767453113011748276528987817673033702402853573405933554284097389411642864469488746362515825235499946661489249964736157109814778639512415643500240759036962805914511487870497510409058999358217653030618081222321776854662506304395995544057044357451823766258053322218454289944424268347352522416350699303120741268206719660387686890758112469092700633141769130470592322857960883066785679249525516625516008947343266124862064615109190642995222192072414962224793705350470876805355345902008664728236025111483986291489036291302436902450878121787600067371656065687673530009308795545726737007471502068506598502145973727168449256927636748161660359797951932614212059530537048285345746819917786380652992848254487029928232215374942030594075003830471286577489616092249408251424237776066749373308327713876036013916800188959771644307453091313534307908231350035587042562220748364805089012991340003040443873567404294493760879824407226427303239951993907409580155439123748317206954476326811083276675986434121923190333689470399876297603321631004988593989756709272629728984903018698840270877235609743893685731537121780439728725421732253178645441419574133564988300106636459422070559231453644895380032116836011174568445239567056494497511408697930316502966412440327167075306066069144369039390764375851527737500025672415574832994547806285796002396208380732989827035578774056949286556746811394416389863400982159385582441955894379873265949057049264818818502912076884773558613578892761240169628141445272426762488624064137701258854377051454950491663806512423581125081310546612426725658688412616004443850793098193743138646451126891422620155724671930874611218818797129248202449504679634356888728511580991743574736050831315788753926362134789552609517066911761263683710396108092380042590902867550060994859249210144383105972939133202082798672027234226226680051627179503771058741952451285543163056041619023487321537303990040687020916042062420718264741687415716518088019470090288120110471178083758092402987926389891712944253459318236274512406206744083512860670921156315118090008547721743874886774806531039301769765997855925627033841104702125795458261850876058793123038170481958358963295154095775661028369119018830474577538601011587723188471382568385612675229408225722004183135345996157080790480357237042105605121172524737876954210760732100005535161675037077642590138057308675800903384923620724435690484013650565666834533994052942685214489745634829850516732952609564883191026968865061038768459326324601040610250922192044481552960197401705389550845679636069696371038927427231537340254782840995166780991507944254027619008682147829965866330601141135758973761933175633073183875406873709419048103982963929042055133890637062297202946475431445907090090482256743403688082078856164746856161042236538225154469056388168623388480220518570207720453172803196029011086249706511857792253070221593220342632290206890504984884222940123398307015040684666187233902179062208254638230444896784744511337154927086329571249639789967112584387869185248047903113387437120163332147235493832652955974787121078808536384138930934526020029848691810659509990770111126707072954645079964023321859200421279164545540498526712343388596941216065737180374744725880734363754248671136535580426867421259548102804086227193747864935525892482051703976979511348331751343195636077196809308186414066006171236947244011245439995531718826463454676931559823933933230466433647179318367613921690371400142185558257149081274435472570671789692599143747018727186613274499834302399920369454396381953410125984531733529885507046142762047920990239510617848223518000047248425685683195470504338521507884935120079747452365581130385482126642053165766672139669577084876924024379234738024276134240620918204705356874165954324809215456349885873637089244468077890725362980619792263062253123639651831783151218811634946642335281525927424000318768992577129374622485221718635686205235388757299570680202741695843764515754450418702409050560476093546600661361116394074471899210358099958671010243132516310991040557896969849944193584616459645555620287326024514150478277033132555625880799081004761601255133606799958749032602171933249928592152017943333098928645531667674255981124945950306550188785032623473014723458618391305208206176757812500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

(2)

B:=numer(A);
C:=denom(A);

222406574698332122252435250830971079503943966893899873061010046112552630386259069637401685560212442917795013591225887980595139392977942373648583009607152484196288175881662161000873006724193107817008634986884016681549315797983674475302952167687296010115423998058937792545156123135128514085376222936956534333661467709603943267166817591050759125546378556021509953431101387162806390748642747962856263376307054999116860242062607946155746045904160110990071231954857053096312538669049301666746282473956165966497879029133028691718788485086812837024895232035254639550611117049172604061373331006912235687880099025714589601293060514923534290333511251452140293881044936627200448629695211482895001880049260169191927167342479479236886987137149964448841700595909460953599335194796501180977937648318175180157907732467615604094544385214458910929891111847123759167082019907430640540350623267594971204709189710261831545091748869095291729975144261647316400962769284835441943582626035150663464597787364430338223929720923238502448310112020523937636008082726994904819729390936904119060846937119553380020429506055435870235335254061430422351523012214272732861156988490647735495073539314877486937249655384391301837275948731251581834151532207163735877722871442328906644413198196889059753795342384784078186480360731780088155355458920343544223415904549149748035172518093778481790482849130732863807784301964752474260738143485917903534737864411332211543233784928270758575196545793147842189937192150824218804236085105191181917342251940582780197196779519298044431252977702914709151592127519378707772486346920404971572114652856758294842539760561616310268481515473737363688337206177669914703396977881074896084977017165419585427032136472760844546786353026960565531827138818677943017097537272815178970847268611859793101155711073707740721584457948767235920715040972090332517740056445315902885625629808893430007350961474779193927118945331561003191569998722433876081130363253839520370072564213723621253425605261869070320962584857230507810895977329421170894904961948343587143770370689193309835745879075358851165220387308715536375180076380255433286787176995149557274104842483295688489894859320728917418866942116425232759113443986203732807147730945385350492006123763548212992787028665476880501250977721601961393196150518389881729168772948729883426394922406485504360280616777232947315507696726839269579739847308703604260014847035322128312298780682710516409873194600955083362851926296501397304085517212328719911059982233640816138530975008151768353235610360232662788219993113946672699272557475586569459920974485754245424535353903510498201199351133673179879748906980045993782023409802375818032995057510162435156275251180224997831772365233537166850479847285103969806949958891107933737270685892320596268117738112063687748695389534244965867661137560384481728016072205662552013142353271771712337783182196593680751213695619183305018307851548271681777197482472766541679572242707672333482319919863289034453051634927325273564984182516553972202376109768414693268791389486618663556015999264997095347265094253155141139564111623831306098316559653318920263800909694555852401552402450307556013264847826109118559062139036892386367314493525963480863759220130784198303488431641119519305452907378565425513738571766860045298212350743247223204093768071976246300102785119404385098912300362065687786207580444368224601497601000998582345914308739561896416146294464908380728966179836228987901854220223499196769050113126520028080068976677963659924709967608717058778522942859950521316776558529089740862489761185915705388631980089259692393828886296593806785720194578783711134978366212357916646503497496998716729938383390675564771377980748832154597027518269586404413536440121952663971714490606569787297990697213858692404490395112001728542423904399656568009670970325256122966826587438463156751360469398067386933787730615011963786947379743267850009545618358135781801779226266997434210955353095600351229830072780168228917350707179552339192413648622549789100955326307875629527519542384543284803420001977761252130380004740262242871541282356064134275569437379478955507813304220825526963021342376052471273104966645687787466842502355158190723393214815260348198905949946182156224475380919916830580733000360584451057547177732362307809049147941538940175867923362828634283553661909129258635663087280952061147718045222361168555578536448942995080136433437112381629019476095865781469478633712723065084356775847051571798406648838457153676177803404118847813175031124459169446431759115005943629880299542469409518189959080090491572299008569356193183465517863678514860583891653289219907718149306052148114684353645036977016348809828701049312019180233206384697288282427862075548509274218957376974780112167915876867249570308511420936909926349032725437186130562442929398167873011813181536831915817112112791611158139331914665096819011927665147659423950320687250875161607123628258455538800932426141141710742501085454223129438484127509003627500798775780775469252497787136191176533201004562722986874257020982037033617506276571172137616432834080308108445879753202564879932990209588696139920900636254561248970068021783043137454149680223316765291540035960699560917979012961868377889283833147230791595336045258519696048662681229019371966755895907242445914794000551844010415940792228928918576432807417774629180380170775538527761721232026668108672154310165632098588740891939953343053545815433654659631088349834300010978713628015457417366519255158032526386731585225736076781498772607282533329313871763478779963204747160611371730075466486514924567951018518913832166878354357684464626883018016032672171641820668296958031720140028671376252296321800426670705547375978353918363658403679865901388318558097923835917765408959476372621709650265797949857971101454387557260771346060582074219303314763857477273034718069652964656867197863169314604726533975585026477049243952307956047737153106596742766939290088022096155927241088033942802452968246984956676619058294934591763425556974700464326318645966773226301008062129801895355847365839769331210319059849974490591811399223607320287078761751472954484023648246412991564348144828202201367622576915797444082935248520151291858582574866280647205552554029700168599065132220226872301673968513372848841683837945264338920752337723260478714348670306410974510648962937516757952370933208226248331440431207300456208229701553502351851353849825071084860302097753663239748395636064527712316770204432682804036164319144997797843948204612906063866983917937493871553097322904769227366581476916050071636040437113740759750066774327586194717754254081557508925259231180359213773075795114886514027766333065845484459776492641356571344435375634184829546628760930084436118685209214014709308510456938110180614471287308095450698577706703120016969060493004287753943235635366383328081438998684654614587041152973124867718833033984931872227579158711140675779408012044785504611864850492334767173218037862194104525661390175432909212546601818315290194385060386628355760764547081830953525790514734534230355982821665932660531564331337952304730202462987958107397748834059634532295481182264386426083477698988178221000333265121715903737154732157268067902051316419919079112657244611395411623438533846262120989309860707120925164956411981995906355446140890555244076963797965366179972607642125322697884122256478679045953888051360823216612363319462741575562931909211019811099974776816010957433505100412412247668964691730567654062584019203538721085158564594597222751813132259480227589200885803632018273674268719806509146234928292915548738787813586631263851136542278845048608842086879626162840373968384382741217815675919615666387692157327316316839278997582324472245750506432481419378293384425442841307548120677504711890054237550252012755845760234370819761414626496456523610540894526977487179089752389027160957986148407262614917419262271369216027875503282762480361774203786654902193494713605167940169013995813757675159731006652596415874429511880170886211641353561313572053711139081516609102540310106988291980853334857353837618656159440464698613762128505012160762246884793764577009919384514081924170001919187530007887649520153462396005518278837630647495254676763491078458852496903701562687834087773169270963465329790169853538810863116266382388267822433218532446069638985653743675451199493021680691987922768798543251867219982947646107421701148028470153765380331863922832611095512846014316334128281775781500092293218290927420923049882580675612153273794965550743718943876201178991003064916137334659360758747985456674935433116973313824562470608354013516474032127652564736478900267155223731976048302192390994286268775116631453975226436690477945591240984241746791928463338174621000781884812198846361146482405593051751643444493346671440848252338737897429346830246671538713664662105560487736792734702116641031630087268441982878678831044349878279021154589430020137749034944713454546968233162088859048127073312368227126888330515785373641132834188631581413905738774635742839577961924603680592441473806738460953812666805886365706983897415282744642937644969695789819721281610281920617826350196914523796942742101597976637345612573030301339172451207517492132760768367121466053135751297041137557138245762159916522199453687192545922743057901175280275681826030101979046355209385788536540301770556389327858934877187477313849343001720986803829864447027231516541515039679435801547514757514638507030807758433111972177109508341499828419483987386257721145138397675116950429172888772676505920686415674636146029282806360843671312742066473625875304454414751424361103896140778201442005651480141572764304797426730644170122973186059025688228086237037443501025150266586862965763042060843960555888185554465262581718909854849625123709961043228157723025332510245392890883457903692826395633538660857389988320807524614945854061119128045400458455434869834511243565433912645606962926485942847154221862374863983142821536702541410282995646979992102357719498690834929427157377554177745916799564399251672110663394779238105013117066321255116911840091176817587424116146588082822804054821769446925764447143071252211413789013712876457299026099779018508919922103593395610447920837418392536992383209947881026958251736795548922089184802253914233178751390271241125108161130513513267636296163982929304715885723305280797151485423835753570990371939881363624066552682017489267375886025109676366419233847870996829049906485894301038408046185274176755425308949998891908114834695763189310501282096311822687960554701409897077090557551456104813119499268617730960102473524364780554543762106910427982056276789038059490657035657293892711413463766435427285150439869525175245929199079005354203780461427746842173827956708381766882393875816666079821041120471853464167045615292099740335082127924388544484234332449687577681449443228363428915442148912653879198861391156253045476347700545828142275188181152478904905724334351437081068629409036874337934399900237072843896279001831690715468684172118994007543509148603421143446361998253029633430731298246024584031642096786617866818040872790373298202034277134080947898509751887852267869348395240064542318939203636030265941585594901019458999910823984641373804384037951245683739142267284385456793290510955584977152045676864448517292187230749264548369627530215722805277324013555636994214362510571668875218123725855105692123274357848336303142542173860136698003664428434212977950830039426008789264905372495434590582966538152079251092855986417639229347332216328892761182843831287546517401529584618954528335729483263969021084839512006581169746793646409040291280169691237817424379909774388965245870536982646039368671502765560756302148701527872463458904781878264008888217590878826803322413772445588954919875863543246704949861680945454130787325632703572749800050626743157822921851726636931614595973271409163860280708398081245021538297729277140545975713014920782159381780021943492130512044627573901661398865728859204519150361243495701567726726494120440930254309787154349692871088672251448205206943378280513001166142372817576733578462650475724559791613053555734415532905507224199855629569914907102585307309073580369431312527968756777645114146943496463661152878780804080002940649907183119767579899840411516658859151243434451424554887805474021774646255805918968170521401927762859810746123469124618450220086357321104152469311660006081994701542411555059542359456636689073881499944140268991739359720825740520740107202540361757563000755995272882752958752218045216624759127347917255187222085489874658446916235766380524059866134431401191270505137401166976468336639761934374969475445487103658254852853286746964796680821105768771670075961707941699620413197627297844590694604196810203798940535276982067091411757123039215144577723499923408612721619793609250121392705405594134413777532615536462113660146934705743019085560102181959634080143769632311032648048584770304808663148502603311320211148253289762479843596075716500105524912492539602369117583632284232246055577975971607870499480169601568326688419512648681321772571343764556875848034557037427865522669540229726649437080548552590264856251932734482226780159371949568429693464826282901498822880938249251107588554261429293811728620749489127045511149476967919274100096046463539501697149480849794585010265848792911438675348411069968451304284899745864621413798111367474225545219334700874968171063572306654412948100018107208854256989775181336855244638373358898617774061413960970063260250558305514475725880246087682241734555545824568310014800254665106889066185964435711227109547574308793835008930644743842504674063816327100059429217103742348507783816700668006387194480852751314998193610130034976293801731673962130135762535226374496293001364292348249057776081032036186617369826656057116541684594922690541599687899922698692457045947764647475136512280239502990606864368789218532045445332213064147680849553911047164603459858292542456092948097901199748446087117706025255718997324327703128189507649490601828977948607867276801055643027670172602360650216167453232177596579965438082363247499205159073369732009117156797984928679543245640822704305566778230095270488075059898612101215012323656127798836788078362303118988959179011559257451222170823449394665769225911135448650254128225819647971607968628522736492325398215865422507370336611420411363091885353523583967227803260861001241775042434960676147217068741710747576146319672470508746034067277479676172947124267736151527978170470579461754789659193029038631049183465329603783539014939046691093612675011703829819028643147010188566325169382670521291175801506683052894482958431747748123289412842520259381561709844092156384413712414715771925204792577662733390609757042374863382360958563289988644563777505763936681451507256694568296019535054226436050555244587630648281254259734906744616234877772661281433812681699536311772521674262891745257081353878998439810559756247628233644412386586134501657109895716304151955603127701336722950156594616291152660088997169181495682394699945191269119211015231064017884109195688660723076818197470957885813275626951601412255473628913143885420102508306450524320916287774352478296128093450434604311985698789712824917700716257802715666894148952413210522878185128233277749787121061538699521714560599213973586462157560591114191843500104521677273505073924646261636779256624277686891834299354952594101274629844104436004452636914842781830081850099371773695320410272331623441543883436067265823446347141656867072087778841375616555901996369921833043087778132615709813306871271108191915837793490276580278888603751528362955915868143254840015129356182725679625064985085269667268654185352755425029940192983487296642431534501069836634747

 

8137688999374210400742450078333128773280184861428227630587859098200986831045143621308131100133952804184633987689454188067827244560479765047945651869703050869405037908294202489199343275117759220413694748830543982052473056466775132877656264101704836697867849405678652304137240576630820624752979127484432850729045803061331879393920022092597642161156261189572945263475759887947376218498255876332232858622149530443019737854639576042969955439161486808267487195252716151217653060765036648431185058072630300639813385348595269743619994884679645424312504808681898046355793271157913111214544394429063035939922984200087157675508963848011018494714817334787927499580173609919531940471332055451112051290930900294623355165708452416097073993177218350832161111188455378476251134346605516620935276108772443413761826521754675332661312177484277899497798571305674273007538208614506805078813939529396109228534101992567307157816574180531770420929547231718709454279950954465727349348453665392623346209417105399708627461938429087343324643023323836728232193532431764396331916131695571238743315062744397808467808481086856261504395374702612155353582458453249293051602237841203987421724692290751140575709889918498938570949810437022379690902149730119872861941590497834107418345941171408763050737389750527857080697988820151123069583151066569808203989176859609540088195388694987704142154580446583942698184420463441464533468024437434714617259914970860258826292677386889423727088220288160605261318524865127012113219116948664477868649075665870607895993097947062102927183875999652541039317643993123381052680772087783764385901227304919925649349025557435428069012964281194249084652909329724167159507628206040274807383466771732395127186302017280736330375705908193505698033361773901846769541243935982013479882419361329056749854565648866485111876386719597489171323182378098888925952835219345310580383739969544285992525465435932110998284340668892779898612013656199914861967291036200987626227717358527207891596611785659356784978811315356446191948217379924765644571597769704167640227119373243311280915099952501729632556775145712335989780897619445509739710386636775114637311863185232517327373408932199124859722225766118384668399169797976259568405935931799061169510072218220617867074076927217421069669701010058554528813018401402418415801902940863348585830106296771396925789207780857163086546382866112427430757856926377786451030428316107077428187051061843311693722506865476498359444107320519258830694271107026502798689206304789108995544848306783322334659277886800158461951152277380123125556191068899325109091161173279724443335964458153012725726412035222415861142163936679050749142079282665015191256979855869246835068289598723417598470940389406139382416040803624596986739327319270360796289207598763346190394304191106734243364252539612531934697613336944356062146051937789444221879173116956078607855936657445580956130278380021329535155717292013954577840788104454435501448371465661819183887024068394997807654043799904379681108349484994973424862325177100467559401033515123447586335012159064636087363275086390027361895392252439301660654162604757654364606833751641873075197617358239735409085885028577743555258216335131534787966696721128694923438796930810833749199161136475181482577053056946884426735069182053927147876696953405752504042239824489926556743269835000368204013766916660674790876274863909426582050455360770223166195851663641777971244842404292111688931063755809542944245360643229639430022555039856232845705569639675665656009476751452308167674354325965405497138788907308722964380249285714322994927696399690719068094252628011537910217452552301228429111382727673652590878688965636147930111211643894349870692708490775355955912449908821515223628402339299225253156179359681145773504718328474837535984928970228942332830531474579210582352262886323939487480659135800190933620802118420081439236033990936639115600413511393855988260946238102423025069049044320832930382956677224820889826126497474311491861792715102214331157434592815450703499507975897644633186773408090954584614597169785886444331567996492078805078364233420754196710063871564084994570463203222409020905320332749038678982419730383510271541896907170355336880559786387114034915444885058186142702242331093193256426416996626969293023871706692527032683186422633573807948690067800884864987471700719591219545589652536860586647931421979487068847748116967314377246065541258511241423747610683751153444494666701948538572715022443590317850142906271457502777925561775550005149473684787748743880390626158607731686837301672948424076383303862942159733015947553623065123832023054378493254112728018265059804495987608383323725213402572745437876543900262083136638506052866446466722680196917450863200288802221858515058028599631084264301877085476805808303933681333639512458151812604643689533570162098742307572073161312250923969386003602512247926923837644797869776408110960290303026127854612806190467469174128294857170679190789751367142897768933801435016915963083231884324246753459185834117697742722200107725591272227672625697937410992992105410675539194175980726501014804747044397855960391623744009727674769876024844840753878009973706557336224783774561592009154630071759938760913038207732370969183944947213176729498056577457252897038386621956266242006817736018085040085334087533369302934409807316976477202749750340504845052793373821364767135160583401976739781662340209707577456072439101010243686261207484902229371048251750292983064492676352507307163999486550773064769467560534589096233217562213255112672360139353846896094795315404285110371390023988836217137438004606347879364730858921685549057420569010407901675955590516097855873352735587813383998911472021861443129329806485286997678349776641510837316139282096196656446578971696378687671124202647766485334486548871780257274993018345768679255853516954679224055089130162492258929514745329428546680942698435388911638614080217185920314769680947220701324908815420933999890595817692264868154807021720440245894405323987324516366482465399921073427465184456915178714076971528761140042616107975045040054911351457347290382729966879473553574561681239060291972883128862901755049080990386781263599542203947016606213382608103646854826825387743841809201769579250593675271669242928000591849447889310036327659960906139206180118530954851516873954858867877796425604732492338379535101935026946478267288676718013106513381962995772766663171340134706619253037972276154459735324461275224442160626638412201180032374537548093767322361106916834972738734571776264110352339852959671103683306897590667272310373740341230731795982845235478529821053783591527257236852303341162797124401114625061227595902270225289671234918889437350079984742799747852210550415898530680766985395557487310644085895156451351829797252998423102697480917938589366100840615858225426624200028953487858352068826991637035899683712231627650735727466992333694781847147297948577703549131043550279653568519560681915249516068739747070918754278497730999717320031635167687942437840842749321251215886383555795095039472265675853101126625200704887585825388314093952634775128387164814773201622876505443868301111339473601537514660128170278546837557631946325842236372274024074360183006855082811585457481618584150732322429481709483822078250624882478856898584236664540486047267653289051589771950151377112902484211942900167938442128339146779347831612050711359062306989047990904964252917636677579901232120205438029116561365632660407683757981640401403364380177436523213076129682781085135084108022478248589126614617140495032130503377136925678923462256353514811399758237233901922868800717144438968399143605750217298983346153938777347900197231092846814434888118755745749827755944674584530362993810464686501060520493560749563744046175353383852266767453113011748276528987817673033702402853573405933554284097389411642864469488746362515825235499946661489249964736157109814778639512415643500240759036962805914511487870497510409058999358217653030618081222321776854662506304395995544057044357451823766258053322218454289944424268347352522416350699303120741268206719660387686890758112469092700633141769130470592322857960883066785679249525516625516008947343266124862064615109190642995222192072414962224793705350470876805355345902008664728236025111483986291489036291302436902450878121787600067371656065687673530009308795545726737007471502068506598502145973727168449256927636748161660359797951932614212059530537048285345746819917786380652992848254487029928232215374942030594075003830471286577489616092249408251424237776066749373308327713876036013916800188959771644307453091313534307908231350035587042562220748364805089012991340003040443873567404294493760879824407226427303239951993907409580155439123748317206954476326811083276675986434121923190333689470399876297603321631004988593989756709272629728984903018698840270877235609743893685731537121780439728725421732253178645441419574133564988300106636459422070559231453644895380032116836011174568445239567056494497511408697930316502966412440327167075306066069144369039390764375851527737500025672415574832994547806285796002396208380732989827035578774056949286556746811394416389863400982159385582441955894379873265949057049264818818502912076884773558613578892761240169628141445272426762488624064137701258854377051454950491663806512423581125081310546612426725658688412616004443850793098193743138646451126891422620155724671930874611218818797129248202449504679634356888728511580991743574736050831315788753926362134789552609517066911761263683710396108092380042590902867550060994859249210144383105972939133202082798672027234226226680051627179503771058741952451285543163056041619023487321537303990040687020916042062420718264741687415716518088019470090288120110471178083758092402987926389891712944253459318236274512406206744083512860670921156315118090008547721743874886774806531039301769765997855925627033841104702125795458261850876058793123038170481958358963295154095775661028369119018830474577538601011587723188471382568385612675229408225722004183135345996157080790480357237042105605121172524737876954210760732100005535161675037077642590138057308675800903384923620724435690484013650565666834533994052942685214489745634829850516732952609564883191026968865061038768459326324601040610250922192044481552960197401705389550845679636069696371038927427231537340254782840995166780991507944254027619008682147829965866330601141135758973761933175633073183875406873709419048103982963929042055133890637062297202946475431445907090090482256743403688082078856164746856161042236538225154469056388168623388480220518570207720453172803196029011086249706511857792253070221593220342632290206890504984884222940123398307015040684666187233902179062208254638230444896784744511337154927086329571249639789967112584387869185248047903113387437120163332147235493832652955974787121078808536384138930934526020029848691810659509990770111126707072954645079964023321859200421279164545540498526712343388596941216065737180374744725880734363754248671136535580426867421259548102804086227193747864935525892482051703976979511348331751343195636077196809308186414066006171236947244011245439995531718826463454676931559823933933230466433647179318367613921690371400142185558257149081274435472570671789692599143747018727186613274499834302399920369454396381953410125984531733529885507046142762047920990239510617848223518000047248425685683195470504338521507884935120079747452365581130385482126642053165766672139669577084876924024379234738024276134240620918204705356874165954324809215456349885873637089244468077890725362980619792263062253123639651831783151218811634946642335281525927424000318768992577129374622485221718635686205235388757299570680202741695843764515754450418702409050560476093546600661361116394074471899210358099958671010243132516310991040557896969849944193584616459645555620287326024514150478277033132555625880799081004761601255133606799958749032602171933249928592152017943333098928645531667674255981124945950306550188785032623473014723458618391305208206176757812500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

(3)

evalf(B/C);

27330.434318076695213

(4)

 

 

If you raise the number close to 1 to a very high degree with the accuracy by default, an even worse situation may occur (the correct answer is close to the number e);

restart;
(1+1./10^10)^(10^10);
                                           
1.000000000


Edit.

Download arithmetic_new.mw

restart;

f:=(x,y)->x*y^2+1:  # Specify the function
TP:=f(2,1)+D[1](f)(2,1)*(x-2)+D[2](f)(2,1)*(y-1);  # Find the tangent plane at the point (2,1)

plot3d([f(x,y), TP], x=2..3, y=1..3, color=[yellow,blue], axes=normal);

plot3d([f(x,y), TP], x=2..2.1, y=1..1.2, color=[yellow,blue], axes=normal);

plot3d([f(x,y), TP], x=2..2.01, y=1..1.02, color=[yellow,blue], axes=normal);

 

Use the  solve  command for this. We get 2 solutions:

solve({x+y=1, y=x^2-5});

                       

Maple is not fully implemented with the integration. Just add the following line to the code:

simplify(value(solution));

 

Edit.

restart;
u:=n->(sin@@n)(1.5);
u(0), u(2), u(10), u(50);

 

Perhaps this should be considered as a bug in Physics package, that the derivative can act as a name. If we write the same without calling this package, we get an error message:

restart;
diff(a(t),t):=1;

     Error, invalid left hand side in assignment


Your problem is easily solved if you use the simplify  command with a side relations:

q(t):=<a(t),b(t)>;
S:={diff(a(t),t)=1, diff(b(t),t)=2};
simplify(diff(q(t),t), S);

       

plots:-implicitplot3d(sin(x)*cos(y)+sin(y)*cos(z)+sin(z)*cos(x), x=-2*Pi..2*Pi, y=-2*Pi..2*Pi, z=-2*Pi..2*Pi, style=surface, color=khaki, grid=[50,50,50]);
                   

The whole surface consists of the following individual cells:

plots:-implicitplot3d(sin(x)*cos(y)+sin(y)*cos(z)+sin(z)*cos(x), x=0..2*Pi, y=0..2*Pi, z=0..2*Pi, style=surface, color=khaki, grid=[50,50,50]);
                  

It is well known that if a complex number  a+b*I  is a root of a polynomial  P(x)  with real coefficients, then the conjugate number  a-b*I  is also the root of this polynomial. Hence the product of two factors  (x-(a+b*I))*(x-(a-b*I))  will be the divisor of this polynomial:

expand((x-(-4+I))*(x-(-4-I)));
                                                   


See  https://en.wikipedia.org/wiki/Complex_conjugate_root_theorem

 

 

If we assign numerical values to the parameters, then there are no problems, for example:


 

``

restart; with(DEtools, odeadvisor)

NULL
N := 10; beta := 1; rho := 2; p := 3; lambda := 4; alpha := (N+2)/(N-2)

ics := {U(0) = beta, V(0) = 1, X(0) = 0, Y(0) = 1}

sys_ode := {diff(U(r), r) = r^(N-1)*rho^(N-2)*p*X(r), diff(V(r), r) = r^(N-1)*rho^(N-2)*p*Y(r), diff(X(r), r) = -r^(N-1)*rho^N*(U(r)^(alpha-1)+lambda*U(r)), diff(Y(r), r) = -r^(N-1)*rho^N*(lambda+(2^alpha-1)*U(r)^(alpha-2))*V(r)}

{diff(U(r), r) = 768*r^9*X(r), diff(V(r), r) = 768*r^9*Y(r), diff(X(r), r) = -1024*r^9*(U(r)^(1/2)+4*U(r)), diff(Y(r), r) = -1024*r^9*(4+(2*2^(1/2)-1)/U(r)^(1/2))*V(r)}

(1)

integ := dsolve(`union`(sys_ode, ics), numeric)

proc (x_rkf45) local _res, _dat, _vars, _solnproc, _xout, _ndsol, _pars, _n, _i; option `Copyright (c) 2000 by Waterloo Maple Inc. All rights reserved.`; if 1 < nargs then error "invalid input: too many arguments" end if; _EnvDSNumericSaveDigits := Digits; Digits := 15; if _EnvInFsolve = true then _xout := evalf[_EnvDSNumericSaveDigits](x_rkf45) else _xout := evalf(x_rkf45) end if; _dat := Array(1..4, {(1) = proc (_xin) local _xout, _dtbl, _dat, _vmap, _x0, _y0, _val, _dig, _n, _ne, _nd, _nv, _pars, _ini, _par, _i, _j, _k, _src; option `Copyright (c) 2002 by Waterloo Maple Inc. All rights reserved.`; table( [( "complex" ) = false ] ) _xout := _xin; _pars := []; _dtbl := array( 1 .. 4, [( 1 ) = (array( 1 .. 26, [( 1 ) = (datatype = float[8], order = C_order, storage = rectangular), ( 2 ) = (datatype = float[8], order = C_order, storage = rectangular), ( 3 ) = ([0, 0, 0, Array(1..0, 1..2, {}, datatype = float[8], order = C_order)]), ( 4 ) = (Array(1..63, {(1) = 4, (2) = 4, (3) = 0, (4) = 0, (5) = 0, (6) = 0, (7) = 1, (8) = 0, (9) = 0, (10) = 0, (11) = 0, (12) = 0, (13) = 0, (14) = 0, (15) = 0, (16) = 0, (17) = 0, (18) = 57, (19) = 30000, (20) = 0, (21) = 0, (22) = 1, (23) = 4, (24) = 0, (25) = 1, (26) = 15, (27) = 1, (28) = 0, (29) = 1, (30) = 3, (31) = 3, (32) = 0, (33) = 1, (34) = 0, (35) = 0, (36) = 0, (37) = 0, (38) = 0, (39) = 0, (40) = 0, (41) = 0, (42) = 0, (43) = 1, (44) = 0, (45) = 0, (46) = 0, (47) = 0, (48) = 0, (49) = 0, (50) = 50, (51) = 1, (52) = 0, (53) = 0, (54) = 0, (55) = 0, (56) = 0, (57) = 0, (58) = 0, (59) = 10000, (60) = 0, (61) = 1000, (62) = 0, (63) = 0}, datatype = integer[8])), ( 5 ) = (Array(1..28, {(1) = .0, (2) = 0.10e-5, (3) = .0, (4) = 0.500001e-14, (5) = .0, (6) = .23201708224516165, (7) = .0, (8) = 0.10e-5, (9) = .0, (10) = .0, (11) = .0, (12) = .0, (13) = 1.0, (14) = .0, (15) = .49999999999999, (16) = .0, (17) = 1.0, (18) = 1.0, (19) = .0, (20) = .0, (21) = 1.0, (22) = 1.0, (23) = .0, (24) = .0, (25) = 0.10e-14, (26) = .0, (27) = .0, (28) = .0}, datatype = float[8], order = C_order)), ( 6 ) = (Array(1..4, {(1) = 1.0, (2) = 1.0, (3) = .0, (4) = 1.0}, datatype = float[8], order = C_order)), ( 7 ) = ([Array(1..4, 1..7, {(1, 1) = .0, (1, 2) = .203125, (1, 3) = .3046875, (1, 4) = .75, (1, 5) = .8125, (1, 6) = .40625, (1, 7) = .8125, (2, 1) = 0.6378173828125e-1, (2, 2) = .0, (2, 3) = .279296875, (2, 4) = .27237892150878906, (2, 5) = -0.9686851501464844e-1, (2, 6) = 0.1956939697265625e-1, (2, 7) = .5381584167480469, (3, 1) = 0.31890869140625e-1, (3, 2) = .0, (3, 3) = -.34375, (3, 4) = -.335235595703125, (3, 5) = .2296142578125, (3, 6) = .41748046875, (3, 7) = 11.480712890625, (4, 1) = 0.9710520505905151e-1, (4, 2) = .0, (4, 3) = .40350341796875, (4, 4) = 0.20297467708587646e-1, (4, 5) = -0.6054282188415527e-2, (4, 6) = -0.4770040512084961e-1, (4, 7) = .77858567237854}, datatype = float[8], order = C_order), Array(1..6, 1..6, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (1, 5) = .0, (1, 6) = 1.0, (2, 1) = .25, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (2, 5) = .0, (2, 6) = 1.0, (3, 1) = .1875, (3, 2) = .5625, (3, 3) = .0, (3, 4) = .0, (3, 5) = .0, (3, 6) = 2.0, (4, 1) = .23583984375, (4, 2) = -.87890625, (4, 3) = .890625, (4, 4) = .0, (4, 5) = .0, (4, 6) = .2681884765625, (5, 1) = .1272735595703125, (5, 2) = -.5009765625, (5, 3) = .44921875, (5, 4) = -0.128936767578125e-1, (5, 5) = .0, (5, 6) = 0.626220703125e-1, (6, 1) = -0.927734375e-1, (6, 2) = .626220703125, (6, 3) = -.4326171875, (6, 4) = .1418304443359375, (6, 5) = -0.861053466796875e-1, (6, 6) = .3131103515625}, datatype = float[8], order = C_order), Array(1..6, {(1) = .0, (2) = .386, (3) = .21, (4) = .63, (5) = 1.0, (6) = 1.0}, datatype = float[8], order = C_order), Array(1..6, {(1) = .25, (2) = -.1043, (3) = .1035, (4) = -0.362e-1, (5) = .0, (6) = .0}, datatype = float[8], order = C_order), Array(1..6, 1..5, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (1, 5) = .0, (2, 1) = 1.544, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (2, 5) = .0, (3, 1) = .9466785280815533, (3, 2) = .25570116989825814, (3, 3) = .0, (3, 4) = .0, (3, 5) = .0, (4, 1) = 3.3148251870684886, (4, 2) = 2.896124015972123, (4, 3) = .9986419139977808, (4, 4) = .0, (4, 5) = .0, (5, 1) = 1.2212245092262748, (5, 2) = 6.019134481287752, (5, 3) = 12.537083329320874, (5, 4) = -.687886036105895, (5, 5) = .0, (6, 1) = 1.2212245092262748, (6, 2) = 6.019134481287752, (6, 3) = 12.537083329320874, (6, 4) = -.687886036105895, (6, 5) = 1.0}, datatype = float[8], order = C_order), Array(1..6, 1..5, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (1, 5) = .0, (2, 1) = -5.6688, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (2, 5) = .0, (3, 1) = -2.4300933568337584, (3, 2) = -.20635991570891224, (3, 3) = .0, (3, 4) = .0, (3, 5) = .0, (4, 1) = -.10735290581452621, (4, 2) = -9.594562251021896, (4, 3) = -20.470286148096154, (4, 4) = .0, (4, 5) = .0, (5, 1) = 7.496443313968615, (5, 2) = -10.246804314641219, (5, 3) = -33.99990352819906, (5, 4) = 11.708908932061595, (5, 5) = .0, (6, 1) = 8.083246795922411, (6, 2) = -7.981132988062785, (6, 3) = -31.52159432874373, (6, 4) = 16.319305431231363, (6, 5) = -6.0588182388340535}, datatype = float[8], order = C_order), Array(1..3, 1..5, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (1, 5) = .0, (2, 1) = 10.126235083446911, (2, 2) = -7.487995877607633, (2, 3) = -34.800918615557414, (2, 4) = -7.9927717075687275, (2, 5) = 1.0251377232956207, (3, 1) = -.6762803392806898, (3, 2) = 6.087714651678606, (3, 3) = 16.43084320892463, (3, 4) = 24.767225114183653, (3, 5) = -6.5943891257167815}, datatype = float[8], order = C_order)]), ( 9 ) = ([Array(1..4, {(1) = .1, (2) = .1, (3) = .1, (4) = .1}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, 1..4, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (2, 1) = .0, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (3, 1) = .0, (3, 2) = .0, (3, 3) = .0, (3, 4) = .0, (4, 1) = .0, (4, 2) = .0, (4, 3) = .0, (4, 4) = .0}, datatype = float[8], order = C_order), Array(1..4, 1..4, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (2, 1) = .0, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (3, 1) = .0, (3, 2) = .0, (3, 3) = .0, (3, 4) = .0, (4, 1) = .0, (4, 2) = .0, (4, 3) = .0, (4, 4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, 1..4, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (2, 1) = .0, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (3, 1) = .0, (3, 2) = .0, (3, 3) = .0, (3, 4) = .0, (4, 1) = .0, (4, 2) = .0, (4, 3) = .0, (4, 4) = .0}, datatype = float[8], order = C_order), Array(1..4, 1..6, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (1, 5) = .0, (1, 6) = .0, (2, 1) = .0, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (2, 5) = .0, (2, 6) = .0, (3, 1) = .0, (3, 2) = .0, (3, 3) = .0, (3, 4) = .0, (3, 5) = .0, (3, 6) = .0, (4, 1) = .0, (4, 2) = .0, (4, 3) = .0, (4, 4) = .0, (4, 5) = .0, (4, 6) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = 0, (2) = 0, (3) = 0, (4) = 0}, datatype = integer[8]), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..8, {(1) = .0, (2) = .0, (3) = .0, (4) = .0, (5) = .0, (6) = .0, (7) = .0, (8) = .0}, datatype = float[8], order = C_order)]), ( 8 ) = ([Array(1..4, {(1) = 1.0, (2) = 1.0, (3) = .0, (4) = 1.0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = .0, (4) = .0}, datatype = float[8], order = C_order), Array(1..4, {(1) = .0, (2) = .0, (3) = -.0, (4) = -.0}, datatype = float[8], order = C_order), 0, 0]), ( 11 ) = (Array(1..6, 0..4, {(1, 1) = .0, (1, 2) = .0, (1, 3) = .0, (1, 4) = .0, (2, 0) = .0, (2, 1) = .0, (2, 2) = .0, (2, 3) = .0, (2, 4) = .0, (3, 0) = .0, (3, 1) = .0, (3, 2) = .0, (3, 3) = .0, (3, 4) = .0, (4, 0) = .0, (4, 1) = .0, (4, 2) = .0, (4, 3) = .0, (4, 4) = .0, (5, 0) = .0, (5, 1) = .0, (5, 2) = .0, (5, 3) = .0, (5, 4) = .0, (6, 0) = .0, (6, 1) = .0, (6, 2) = .0, (6, 3) = .0, (6, 4) = .0}, datatype = float[8], order = C_order)), ( 10 ) = ([proc (N, X, Y, YP) option `[Y[1] = U(r), Y[2] = V(r), Y[3] = X(r), Y[4] = Y(r)]`; YP[1] := 768*X^9*Y[3]; YP[2] := 768*X^9*Y[4]; if Y[1] < 0 then YP[1] := undefined; return 0 end if; YP[3] := -1024*X^9*(evalf(Y[1]^(1/2))+4*Y[1]); if Y[1] < 0 then YP[1] := undefined; return 0 end if; YP[4] := -1024*X^9*(4+1.82842712474620*evalf(1/Y[1]^(1/2)))*Y[2]; 0 end proc, -1, 0, 0, 0, 0, 0, 0]), ( 13 ) = (), ( 12 ) = (), ( 15 ) = ("rkf45"), ( 14 ) = ([0, 0]), ( 18 ) = ([]), ( 19 ) = (0), ( 16 ) = ([0, 0, 0, []]), ( 17 ) = ([proc (N, X, Y, YP) option `[Y[1] = U(r), Y[2] = V(r), Y[3] = X(r), Y[4] = Y(r)]`; YP[1] := 768*X^9*Y[3]; YP[2] := 768*X^9*Y[4]; if Y[1] < 0 then YP[1] := undefined; return 0 end if; YP[3] := -1024*X^9*(evalf(Y[1]^(1/2))+4*Y[1]); if Y[1] < 0 then YP[1] := undefined; return 0 end if; YP[4] := -1024*X^9*(4+1.82842712474620*evalf(1/Y[1]^(1/2)))*Y[2]; 0 end proc, -1, 0, 0, 0, 0, 0, 0]), ( 22 ) = (0), ( 23 ) = (0), ( 20 ) = ([]), ( 21 ) = (0), ( 26 ) = (Array(1..0, {})), ( 25 ) = (Array(1..0, {})), ( 24 ) = (0)  ] ))  ] ); _y0 := Array(0..4, {(1) = 0., (2) = 1., (3) = 1., (4) = 0.}); _vmap := array( 1 .. 4, [( 1 ) = (1), ( 2 ) = (2), ( 3 ) = (3), ( 4 ) = (4)  ] ); _x0 := _dtbl[1][5][5]; _n := _dtbl[1][4][1]; _ne := _dtbl[1][4][3]; _nd := _dtbl[1][4][4]; _nv := _dtbl[1][4][16]; if not type(_xout, 'numeric') then if member(_xout, ["start", "left", "right"]) then if _Env_smart_dsolve_numeric = true or _dtbl[1][4][10] = 1 then if _xout = "left" then if type(_dtbl[2], 'table') then return _dtbl[2][5][1] end if elif _xout = "right" then if type(_dtbl[3], 'table') then return _dtbl[3][5][1] end if end if end if; return _dtbl[1][5][5] elif _xout = "method" then return _dtbl[1][15] elif _xout = "storage" then return evalb(_dtbl[1][4][10] = 1) elif _xout = "leftdata" then if not type(_dtbl[2], 'array') then return NULL else return eval(_dtbl[2]) end if elif _xout = "rightdata" then if not type(_dtbl[3], 'array') then return NULL else return eval(_dtbl[3]) end if elif _xout = "enginedata" then return eval(_dtbl[1]) elif _xout = "enginereset" then _dtbl[2] := evaln(_dtbl[2]); _dtbl[3] := evaln(_dtbl[3]); return NULL elif _xout = "initial" then return procname(_y0[0]) elif _xout = "laxtol" then return _dtbl[`if`(member(_dtbl[4], {2, 3}), _dtbl[4], 1)][5][18] elif _xout = "numfun" then return `if`(member(_dtbl[4], {2, 3}), _dtbl[_dtbl[4]][4][18], 0) elif _xout = "parameters" then return [seq(_y0[_n+_i], _i = 1 .. nops(_pars))] elif _xout = "initial_and_parameters" then return procname(_y0[0]), [seq(_y0[_n+_i], _i = 1 .. nops(_pars))] elif _xout = "last" then if _dtbl[4] <> 2 and _dtbl[4] <> 3 or _x0-_dtbl[_dtbl[4]][5][1] = 0. then error "no information is available on last computed point" else _xout := _dtbl[_dtbl[4]][5][1] end if elif _xout = "function" then if _dtbl[1][4][33]-2. = 0 then return eval(_dtbl[1][10], 1) else return eval(_dtbl[1][10][1], 1) end if elif _xout = "map" then return copy(_vmap) elif type(_xin, `=`) and type(rhs(_xin), 'list') and member(lhs(_xin), {"initial", "parameters", "initial_and_parameters"}) then _ini, _par := [], []; if lhs(_xin) = "initial" then _ini := rhs(_xin) elif lhs(_xin) = "parameters" then _par := rhs(_xin) elif select(type, rhs(_xin), `=`) <> [] then _par, _ini := selectremove(type, rhs(_xin), `=`) elif nops(rhs(_xin)) < nops(_pars)+1 then error "insufficient data for specification of initial and parameters" else _par := rhs(_xin)[-nops(_pars) .. -1]; _ini := rhs(_xin)[1 .. -nops(_pars)-1] end if; _xout := lhs(_xout); if _par <> [] then `dsolve/numeric/process_parameters`(_n, _pars, _par, _y0) end if; if _ini <> [] then `dsolve/numeric/process_initial`(_n-_ne, _ini, _y0, _pars, _vmap) end if; `dsolve/numeric/SC/reinitialize`(_dtbl, _y0, _n, procname, _pars); if _Env_smart_dsolve_numeric = true and type(_y0[0], 'numeric') and _dtbl[1][4][10] <> 1 then procname("right") := _y0[0]; procname("left") := _y0[0] end if; if _xout = "initial" then return [_y0[0], seq(_y0[_vmap[_i]], _i = 1 .. _n-_ne)] elif _xout = "parameters" then return [seq(_y0[_n+_i], _i = 1 .. nops(_pars))] else return [_y0[0], seq(_y0[_vmap[_i]], _i = 1 .. _n-_ne)], [seq(_y0[_n+_i], _i = 1 .. nops(_pars))] end if elif _xin = "eventstop" then if _nv = 0 then error "this solution has no events" end if; _i := _dtbl[4]; if _i <> 2 and _i <> 3 then return 0 end if; if _dtbl[_i][4][10] = 1 and assigned(_dtbl[5-_i]) and _dtbl[_i][4][9] < 100 and 100 <= _dtbl[5-_i][4][9] then _i := 5-_i; _dtbl[4] := _i; _j := round(_dtbl[_i][4][17]); return round(_dtbl[_i][3][1][_j, 1]) elif 100 <= _dtbl[_i][4][9] then _j := round(_dtbl[_i][4][17]); return round(_dtbl[_i][3][1][_j, 1]) else return 0 end if elif _xin = "eventstatus" then if _nv = 0 then error "this solution has no events" end if; _i := [selectremove(proc (a) options operator, arrow; _dtbl[1][3][1][a, 7] = 1 end proc, {seq(_j, _j = 1 .. round(_dtbl[1][3][1][_nv+1, 1]))})]; return ':-enabled' = _i[1], ':-disabled' = _i[2] elif _xin = "eventclear" then if _nv = 0 then error "this solution has no events" end if; _i := _dtbl[4]; if _i <> 2 and _i <> 3 then error "no events to clear" end if; if _dtbl[_i][4][10] = 1 and assigned(_dtbl[5-_i]) and _dtbl[_i][4][9] < 100 and 100 < _dtbl[5-_i][4][9] then _dtbl[4] := 5-_i; _i := 5-_i end if; if _dtbl[_i][4][9] < 100 then error "no events to clear" elif _nv < _dtbl[_i][4][9]-100 then error "event error condition cannot be cleared" else _j := _dtbl[_i][4][9]-100; if irem(round(_dtbl[_i][3][1][_j, 4]), 2) = 1 then error "retriggerable events cannot be cleared" end if; _j := round(_dtbl[_i][3][1][_j, 1]); for _k to _nv do if _dtbl[_i][3][1][_k, 1] = _j then if _dtbl[_i][3][1][_k, 2] = 3 then error "range events cannot be cleared" end if; _dtbl[_i][3][1][_k, 8] := _dtbl[_i][3][1][_nv+1, 8] end if end do; _dtbl[_i][4][17] := 0; _dtbl[_i][4][9] := 0; if _dtbl[1][4][10] = 1 then if _i = 2 then try procname(procname("left")) catch:  end try else try procname(procname("right")) catch:  end try end if end if end if; return  elif type(_xin, `=`) and member(lhs(_xin), {"eventdisable", "eventenable"}) then if _nv = 0 then error "this solution has no events" end if; if type(rhs(_xin), {('list')('posint'), ('set')('posint')}) then _i := {op(rhs(_xin))} elif type(rhs(_xin), 'posint') then _i := {rhs(_xin)} else error "event identifiers must be integers in the range 1..%1", round(_dtbl[1][3][1][_nv+1, 1]) end if; if select(proc (a) options operator, arrow; _nv < a end proc, _i) <> {} then error "event identifiers must be integers in the range 1..%1", round(_dtbl[1][3][1][_nv+1, 1]) end if; _k := {}; for _j to _nv do if member(round(_dtbl[1][3][1][_j, 1]), _i) then _k := `union`(_k, {_j}) end if end do; _i := _k; if lhs(_xin) = "eventdisable" then _dtbl[4] := 0; _j := [evalb(assigned(_dtbl[2]) and member(_dtbl[2][4][17], _i)), evalb(assigned(_dtbl[3]) and member(_dtbl[3][4][17], _i))]; for _k in _i do _dtbl[1][3][1][_k, 7] := 0; if assigned(_dtbl[2]) then _dtbl[2][3][1][_k, 7] := 0 end if; if assigned(_dtbl[3]) then _dtbl[3][3][1][_k, 7] := 0 end if end do; if _j[1] then for _k to _nv+1 do if _k <= _nv and not type(_dtbl[2][3][4][_k, 1], 'undefined') then userinfo(3, {'events', 'eventreset'}, `reinit #2, event code `, _k, ` to defined init `, _dtbl[2][3][4][_k, 1]); _dtbl[2][3][1][_k, 8] := _dtbl[2][3][4][_k, 1] elif _dtbl[2][3][1][_k, 2] = 0 and irem(iquo(round(_dtbl[2][3][1][_k, 4]), 32), 2) = 1 then userinfo(3, {'events', 'eventreset'}, `reinit #2, event code `, _k, ` to rate hysteresis init `, _dtbl[2][5][24]); _dtbl[2][3][1][_k, 8] := _dtbl[2][5][24] elif _dtbl[2][3][1][_k, 2] = 0 and irem(iquo(round(_dtbl[2][3][1][_k, 4]), 2), 2) = 0 then userinfo(3, {'events', 'eventreset'}, `reinit #2, event code `, _k, ` to initial init `, _x0); _dtbl[2][3][1][_k, 8] := _x0 else userinfo(3, {'events', 'eventreset'}, `reinit #2, event code `, _k, ` to fireinitial init `, _x0-1); _dtbl[2][3][1][_k, 8] := _x0-1 end if end do; _dtbl[2][4][17] := 0; _dtbl[2][4][9] := 0; if _dtbl[1][4][10] = 1 then procname(procname("left")) end if end if; if _j[2] then for _k to _nv+1 do if _k <= _nv and not type(_dtbl[3][3][4][_k, 2], 'undefined') then userinfo(3, {'events', 'eventreset'}, `reinit #3, event code `, _k, ` to defined init `, _dtbl[3][3][4][_k, 2]); _dtbl[3][3][1][_k, 8] := _dtbl[3][3][4][_k, 2] elif _dtbl[3][3][1][_k, 2] = 0 and irem(iquo(round(_dtbl[3][3][1][_k, 4]), 32), 2) = 1 then userinfo(3, {'events', 'eventreset'}, `reinit #3, event code `, _k, ` to rate hysteresis init `, _dtbl[3][5][24]); _dtbl[3][3][1][_k, 8] := _dtbl[3][5][24] elif _dtbl[3][3][1][_k, 2] = 0 and irem(iquo(round(_dtbl[3][3][1][_k, 4]), 2), 2) = 0 then userinfo(3, {'events', 'eventreset'}, `reinit #3, event code `, _k, ` to initial init `, _x0); _dtbl[3][3][1][_k, 8] := _x0 else userinfo(3, {'events', 'eventreset'}, `reinit #3, event code `, _k, ` to fireinitial init `, _x0+1); _dtbl[3][3][1][_k, 8] := _x0+1 end if end do; _dtbl[3][4][17] := 0; _dtbl[3][4][9] := 0; if _dtbl[1][4][10] = 1 then procname(procname("right")) end if end if else for _k in _i do _dtbl[1][3][1][_k, 7] := 1 end do; _dtbl[2] := evaln(_dtbl[2]); _dtbl[3] := evaln(_dtbl[3]); _dtbl[4] := 0; if _dtbl[1][4][10] = 1 then if _x0 <= procname("right") then try procname(procname("right")) catch:  end try end if; if procname("left") <= _x0 then try procname(procname("left")) catch:  end try end if end if end if; return  elif type(_xin, `=`) and lhs(_xin) = "eventfired" then if not type(rhs(_xin), 'list') then error "'eventfired' must be specified as a list" end if; if _nv = 0 then error "this solution has no events" end if; if _dtbl[4] <> 2 and _dtbl[4] <> 3 then error "'direction' must be set prior to calling/setting 'eventfired'" end if; _i := _dtbl[4]; _val := NULL; if not assigned(_EnvEventRetriggerWarned) then _EnvEventRetriggerWarned := false end if; for _k in rhs(_xin) do if type(_k, 'integer') then _src := _k elif type(_k, 'integer' = 'anything') and type(evalf(rhs(_k)), 'numeric') then _k := lhs(_k) = evalf[max(Digits, 18)](rhs(_k)); _src := lhs(_k) else error "'eventfired' entry is not valid: %1", _k end if; if _src < 1 or round(_dtbl[1][3][1][_nv+1, 1]) < _src then error "event identifiers must be integers in the range 1..%1", round(_dtbl[1][3][1][_nv+1, 1]) end if; _src := {seq(`if`(_dtbl[1][3][1][_j, 1]-_src = 0., _j, NULL), _j = 1 .. _nv)}; if nops(_src) <> 1 then error "'eventfired' can only be set/queried for root-finding events and time/interval events" end if; _src := _src[1]; if _dtbl[1][3][1][_src, 2] <> 0. and _dtbl[1][3][1][_src, 2]-2. <> 0. then error "'eventfired' can only be set/queried for root-finding events and time/interval events" elif irem(round(_dtbl[1][3][1][_src, 4]), 2) = 1 then if _EnvEventRetriggerWarned = false then WARNING(`'eventfired' has no effect on events that retrigger`) end if; _EnvEventRetriggerWarned := true end if; if _dtbl[_i][3][1][_src, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_src, 4]), 32), 2) = 1 then _val := _val, undefined elif type(_dtbl[_i][3][4][_src, _i-1], 'undefined') or _i = 2 and _dtbl[2][3][1][_src, 8] < _dtbl[2][3][4][_src, 1] or _i = 3 and _dtbl[3][3][4][_src, 2] < _dtbl[3][3][1][_src, 8] then _val := _val, _dtbl[_i][3][1][_src, 8] else _val := _val, _dtbl[_i][3][4][_src, _i-1] end if; if type(_k, `=`) then if _dtbl[_i][3][1][_src, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_src, 4]), 32), 2) = 1 then error "cannot set event code for a rate hysteresis event" end if; userinfo(3, {'events', 'eventreset'}, `manual set event code `, _src, ` to value `, rhs(_k)); _dtbl[_i][3][1][_src, 8] := rhs(_k); _dtbl[_i][3][4][_src, _i-1] := rhs(_k) end if end do; return [_val] elif type(_xin, `=`) and lhs(_xin) = "direction" then if not member(rhs(_xin), {-1, 1, ':-left', ':-right'}) then error "'direction' must be specified as either '1' or 'right' (positive) or '-1' or 'left' (negative)" end if; _src := `if`(_dtbl[4] = 2, -1, `if`(_dtbl[4] = 3, 1, undefined)); _i := `if`(member(rhs(_xin), {1, ':-right'}), 3, 2); _dtbl[4] := _i; _dtbl[_i] := `dsolve/numeric/SC/IVPdcopy`(_dtbl[1], `if`(assigned(_dtbl[_i]), _dtbl[_i], NULL)); if 0 < _nv then for _j to _nv+1 do if _j <= _nv and not type(_dtbl[_i][3][4][_j, _i-1], 'undefined') then userinfo(3, {'events', 'eventreset'}, `reinit #4, event code `, _j, ` to defined init `, _dtbl[_i][3][4][_j, _i-1]); _dtbl[_i][3][1][_j, 8] := _dtbl[_i][3][4][_j, _i-1] elif _dtbl[_i][3][1][_j, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_j, 4]), 32), 2) = 1 then userinfo(3, {'events', 'eventreset'}, `reinit #4, event code `, _j, ` to rate hysteresis init `, _dtbl[_i][5][24]); _dtbl[_i][3][1][_j, 8] := _dtbl[_i][5][24] elif _dtbl[_i][3][1][_j, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_j, 4]), 2), 2) = 0 then userinfo(3, {'events', 'eventreset'}, `reinit #4, event code `, _j, ` to initial init `, _x0); _dtbl[_i][3][1][_j, 8] := _x0 else userinfo(3, {'events', 'eventreset'}, `reinit #4, event code `, _j, ` to fireinitial init `, _x0-2*_i+5.0); _dtbl[_i][3][1][_j, 8] := _x0-2*_i+5.0 end if end do end if; return _src elif _xin = "eventcount" then if _dtbl[1][3][1] = 0 or _dtbl[4] <> 2 and _dtbl[4] <> 3 then return 0 else return round(_dtbl[_dtbl[4]][3][1][_nv+1, 12]) end if else return "procname" end if end if; if _xout = _x0 then return [_x0, seq(evalf(_dtbl[1][6][_vmap[_i]]), _i = 1 .. _n-_ne)] end if; _i := `if`(_x0 <= _xout, 3, 2); if _xin = "last" and 0 < _dtbl[_i][4][9] and _dtbl[_i][4][9] < 100 then _dat := eval(_dtbl[_i], 2); _j := _dat[4][20]; return [_dat[11][_j, 0], seq(_dat[11][_j, _vmap[_i]], _i = 1 .. _n-_ne-_nd), seq(_dat[8][1][_vmap[_i]], _i = _n-_ne-_nd+1 .. _n-_ne)] end if; if not type(_dtbl[_i], 'array') then _dtbl[_i] := `dsolve/numeric/SC/IVPdcopy`(_dtbl[1], `if`(assigned(_dtbl[_i]), _dtbl[_i], NULL)); if 0 < _nv then for _j to _nv+1 do if _j <= _nv and not type(_dtbl[_i][3][4][_j, _i-1], 'undefined') then userinfo(3, {'events', 'eventreset'}, `reinit #5, event code `, _j, ` to defined init `, _dtbl[_i][3][4][_j, _i-1]); _dtbl[_i][3][1][_j, 8] := _dtbl[_i][3][4][_j, _i-1] elif _dtbl[_i][3][1][_j, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_j, 4]), 32), 2) = 1 then userinfo(3, {'events', 'eventreset'}, `reinit #5, event code `, _j, ` to rate hysteresis init `, _dtbl[_i][5][24]); _dtbl[_i][3][1][_j, 8] := _dtbl[_i][5][24] elif _dtbl[_i][3][1][_j, 2] = 0 and irem(iquo(round(_dtbl[_i][3][1][_j, 4]), 2), 2) = 0 then userinfo(3, {'events', 'eventreset'}, `reinit #5, event code `, _j, ` to initial init `, _x0); _dtbl[_i][3][1][_j, 8] := _x0 else userinfo(3, {'events', 'eventreset'}, `reinit #5, event code `, _j, ` to fireinitial init `, _x0-2*_i+5.0); _dtbl[_i][3][1][_j, 8] := _x0-2*_i+5.0 end if end do end if end if; if _xin <> "last" then if 0 < 0 then if `dsolve/numeric/checkglobals`(op(_dtbl[1][14]), _pars, _n, _y0) then `dsolve/numeric/SC/reinitialize`(_dtbl, _y0, _n, procname, _pars, _i) end if end if; if _dtbl[1][4][7] = 0 then error "parameters must be initialized before solution can be computed" end if end if; _dat := eval(_dtbl[_i], 2); _dtbl[4] := _i; try _src := `dsolve/numeric/SC/IVPrun`(_dat, _xout) catch: userinfo(2, `dsolve/debug`, print(`Exception in solnproc:`, [lastexception][2 .. -1])); error  end try; if _dat[17] <> _dtbl[1][17] then _dtbl[1][17] := _dat[17]; _dtbl[1][10] := _dat[10] end if; if _src = 0 and 100 < _dat[4][9] then _val := _dat[3][1][_nv+1, 8] else _val := _dat[11][_dat[4][20], 0] end if; if _src <> 0 or _dat[4][9] <= 0 then _dtbl[1][5][1] := _xout else _dtbl[1][5][1] := _val end if; if _i = 3 and _val < _xout then Rounding := -infinity; if _dat[4][9] = 1 then error "cannot evaluate the solution further right of %1, probably a singularity", evalf[8](_val) elif _dat[4][9] = 2 then error "cannot evaluate the solution further right of %1, maxfun limit exceeded (see ?dsolve,maxfun for details)", evalf[8](_val) elif _dat[4][9] = 3 then if _dat[4][25] = 3 then error "cannot evaluate the solution past the initial point, problem may be initially singular or improperly set up" else error "cannot evaluate the solution past the initial point, problem may be complex, initially singular or improperly set up" end if elif _dat[4][9] = 4 then error "cannot evaluate the solution further right of %1, accuracy goal cannot be achieved with specified 'minstep'", evalf[8](_val) elif _dat[4][9] = 5 then error "cannot evaluate the solution further right of %1, too many step failures, tolerances may be too loose for problem", evalf[8](_val) elif _dat[4][9] = 6 then error "cannot evaluate the solution further right of %1, cannot downgrade delay storage for problems with delay derivative order > 1, try increasing delaypts", evalf[8](_val) elif _dat[4][9] = 10 then error "cannot evaluate the solution further right of %1, interrupt requested", evalf[8](_val) elif 100 < _dat[4][9] then if _dat[4][9]-100 = _nv+1 then error "constraint projection failure on event at t=%1", evalf[8](_val) elif _dat[4][9]-100 = _nv+2 then error "index-1 and derivative evaluation failure on event at t=%1", evalf[8](_val) elif _dat[4][9]-100 = _nv+3 then error "maximum number of event iterations reached (%1) at t=%2", round(_dat[3][1][_nv+1, 3]), evalf[8](_val) else if _Env_dsolve_nowarnstop <> true then `dsolve/numeric/warning`(StringTools:-FormatMessage("cannot evaluate the solution further right of %1, event #%2 triggered a halt", evalf[8](_val), round(_dat[3][1][_dat[4][9]-100, 1]))) end if; Rounding := 'nearest'; _xout := _val end if else error "cannot evaluate the solution further right of %1", evalf[8](_val) end if elif _i = 2 and _xout < _val then Rounding := infinity; if _dat[4][9] = 1 then error "cannot evaluate the solution further left of %1, probably a singularity", evalf[8](_val) elif _dat[4][9] = 2 then error "cannot evaluate the solution further left of %1, maxfun limit exceeded (see ?dsolve,maxfun for details)", evalf[8](_val) elif _dat[4][9] = 3 then if _dat[4][25] = 3 then error "cannot evaluate the solution past the initial point, problem may be initially singular or improperly set up" else error "cannot evaluate the solution past the initial point, problem may be complex, initially singular or improperly set up" end if elif _dat[4][9] = 4 then error "cannot evaluate the solution further left of %1, accuracy goal cannot be achieved with specified 'minstep'", evalf[8](_val) elif _dat[4][9] = 5 then error "cannot evaluate the solution further left of %1, too many step failures, tolerances may be too loose for problem", evalf[8](_val) elif _dat[4][9] = 6 then error "cannot evaluate the solution further left of %1, cannot downgrade delay storage for problems with delay derivative order > 1, try increasing delaypts", evalf[8](_val) elif _dat[4][9] = 10 then error "cannot evaluate the solution further right of %1, interrupt requested", evalf[8](_val) elif 100 < _dat[4][9] then if _dat[4][9]-100 = _nv+1 then error "constraint projection failure on event at t=%1", evalf[8](_val) elif _dat[4][9]-100 = _nv+2 then error "index-1 and derivative evaluation failure on event at t=%1", evalf[8](_val) elif _dat[4][9]-100 = _nv+3 then error "maximum number of event iterations reached (%1) at t=%2", round(_dat[3][1][_nv+1, 3]), evalf[8](_val) else if _Env_dsolve_nowarnstop <> true then `dsolve/numeric/warning`(StringTools:-FormatMessage("cannot evaluate the solution further left of %1, event #%2 triggered a halt", evalf[8](_val), round(_dat[3][1][_dat[4][9]-100, 1]))) end if; Rounding := 'nearest'; _xout := _val end if else error "cannot evaluate the solution further left of %1", evalf[8](_val) end if end if; if _EnvInFsolve = true then _dig := _dat[4][26]; if type(_EnvDSNumericSaveDigits, 'posint') then _dat[4][26] := _EnvDSNumericSaveDigits else _dat[4][26] := Digits end if; _Env_dsolve_SC_native := true; if _dat[4][25] = 1 then _i := 1; _dat[4][25] := 2 else _i := _dat[4][25] end if; _val := `dsolve/numeric/SC/IVPval`(_dat, _xout, _src); _dat[4][25] := _i; _dat[4][26] := _dig; [_xout, seq(_val[_vmap[_i]], _i = 1 .. _n-_ne)] else Digits := _dat[4][26]; _val := `dsolve/numeric/SC/IVPval`(eval(_dat, 2), _xout, _src); [_xout, seq(_val[_vmap[_i]], _i = 1 .. _n-_ne)] end if end proc, (2) = Array(0..0, {}), (3) = [r, U(r), V(r), X(r), Y(r)], (4) = []}); _vars := _dat[3]; _pars := map(rhs, _dat[4]); _n := nops(_vars)-1; _solnproc := _dat[1]; if not type(_xout, 'numeric') then if member(x_rkf45, ["start", 'start', "method", 'method', "left", 'left', "right", 'right', "leftdata", "rightdata", "enginedata", "eventstop", 'eventstop', "eventclear", 'eventclear', "eventstatus", 'eventstatus', "eventcount", 'eventcount', "laxtol", 'laxtol', "numfun", 'numfun', NULL]) then _res := _solnproc(convert(x_rkf45, 'string')); if 1 < nops([_res]) then return _res elif type(_res, 'array') then return eval(_res, 1) elif _res <> "procname" then return _res end if elif member(x_rkf45, ["last", 'last', "initial", 'initial', "parameters", 'parameters', "initial_and_parameters", 'initial_and_parameters', NULL]) then _xout := convert(x_rkf45, 'string'); _res := _solnproc(_xout); if _xout = "parameters" then return [seq(_pars[_i] = _res[_i], _i = 1 .. nops(_pars))] elif _xout = "initial_and_parameters" then return [seq(_vars[_i+1] = [_res][1][_i+1], _i = 0 .. _n), seq(_pars[_i] = [_res][2][_i], _i = 1 .. nops(_pars))] else return [seq(_vars[_i+1] = _res[_i+1], _i = 0 .. _n)] end if elif type(_xout, `=`) and member(lhs(_xout), ["initial", 'initial', "parameters", 'parameters', "initial_and_parameters", 'initial_and_parameters', NULL]) then _xout := convert(lhs(x_rkf45), 'string') = rhs(x_rkf45); if type(rhs(_xout), 'list') then _res := _solnproc(_xout) else error "initial and/or parameter values must be specified in a list" end if; if lhs(_xout) = "initial" then return [seq(_vars[_i+1] = _res[_i+1], _i = 0 .. _n)] elif lhs(_xout) = "parameters" then return [seq(_pars[_i] = _res[_i], _i = 1 .. nops(_pars))] else return [seq(_vars[_i+1] = [_res][1][_i+1], _i = 0 .. _n), seq(_pars[_i] = [_res][2][_i], _i = 1 .. nops(_pars))] end if elif type(_xout, `=`) and member(lhs(_xout), ["eventdisable", 'eventdisable', "eventenable", 'eventenable', "eventfired", 'eventfired', "direction", 'direction', NULL]) then return _solnproc(convert(lhs(x_rkf45), 'string') = rhs(x_rkf45)) elif _xout = "solnprocedure" then return eval(_solnproc) elif _xout = "sysvars" then return _vars end if; if procname <> unknown then return ('procname')(x_rkf45) else _ndsol := 1; _ndsol := _ndsol; _ndsol := pointto(_dat[2][0]); return ('_ndsol')(x_rkf45) end if end if; try _res := _solnproc(_xout); [seq(_vars[_i+1] = _res[_i+1], _i = 0 .. _n)] catch: error  end try end proc

(2)

plots:-odeplot(integ, [[r, U(r)], [r, X(r)], [r, V(r)], [r, Y(r)]], r = 0 .. 1, view = -1.5 .. 1.5, color = [red, blue, green, yellow])

Warning, cannot evaluate the solution further right of .61574718, probably a singularity

 

 

``


 

Download problemdisplaysolution_new.mw

Use the  assign  command for this:

restart;
assign({d = 520.9032305, c = .41478630e-1, b = -.84548378e-5, a = .125070852e-8});
a, b;

 

Use the  assign  command for this:

restart;
L:=[1, 2, 3, 4, 5]:
assign(seq(x[i]=L[i], i = 1 .. 5));
x[1], x[4];


Another way is to name the entire list:

restart;
L:=[1, 2, 3, 4, 5]:
x:=L;
x[1], x[4];


Or immediately:

restart;
x:=[1, 2, 3, 4, 5]:
x[1], x[4];

 

First we find the point  x0  in the range  [1, 2]  in which the derivative is 0. To check the type of the point  x0 , we find the 2nd derivative. Since the second derivative turned out to be negative in the point  x0 , we conclude that at the point  x0  we have a local maximum. The graph of the function confirms the result:

f := x->2*sin(x^2/2)-sin(x/2)^2;
x0:=fsolve(D(f)(x)=0, x=1..2);
(D@@2)(f)(x0);
plot(f, 1..2); 

 

Use the  select  command for this.

Examples for a vector and a list:

select(t->t>=10 and t<=30, <20, 133, 2 + 3*I, 15, 3 + 3*I>);
select(t->t>=10 and t<=30, [20, 133, 2 + 3*I, 15, 3 + 3*I]);

 

 

If we assume that your conditions

{f(r, 0, t) = 1, f(r, z, 0) = 0, (D[1](f))(r, L, t) = 0, f(Ri, z, t) = 0}

are true for any values of variables, then such a function does not exist, because from the first two conditions we have  f(r, 0, 0) = 1  and  f(r, 0, 0) = 0

If the conditions are slightly weaken, it is easy to choose the appropriate piecewise function ( g(r,z,t)  is an arbitrary function of three variables):

 

 

 

restart;
Ri := 1: L := 1:
f := unapply(piecewise(z = 0, 1, z <> 0, (r-Ri)*(z-L)*g(r, z, t)), r, z, t);

f := proc (r, z, t) options operator, arrow; piecewise(z = 0, 1, z <> 0, (r-1)*(z-1)*g(r, z, t)) end proc

(1)

is(f(r, 0, t) = 1);
is(f(1, z, t) = 0) assuming z<>0;
is((D[1](f))(r, L, t) = 0);
is(f(Ri, z, t) = 0) assuming z<>0;

true

 

true

 

true

 

true

(2)

 

 

 

Download function.mw

Edit.

1 2 3 4 5 6 7 Last Page 1 of 199