Error In Matrix Invalid Subscript Selector
• MapleSim Academic • MapleSim Server • MapleSim Modelica Engine • Connectors & Component Libraries Online Education • Maple T.A. - Testing & Assessment • Maple T.A. MAA Placement Test Suite • Möbius - Online Courseware Other Products • Toolboxes & Connectors • E-Books & Study Guides • Professional Services • Partnerships and OEM Opportunities Solutions Education • Mathematics Education • Engineering Education • High Schools & Two-Year Colleges • Testing & Assessment • Developmental Math • Students Applied Research • Financial Modeling • Operations Research • High Performance Computing • Physics • Life Sciences • Virtual Prototyping Engineering: Industry Solutions • Manufacturing • Mining & Oil Production Equipment • Aircraft Systems • Space Systems • Electric & Hybrid-Electric Vehicles • Powertrain • Vehicle Dynamics • Heavy Vehicles (including trucks, off-road) • Robotics Research • Robotics/Motion Control/Mechatronics • Power Industries • Medical Devices Engineering: Application Areas • System Simulation & Analysis • Model development for HIL • Plant Modeling for Control Design • Robotics/Motion Control/Mechatronics • Vibration Analysis & Attenuation • Battery Design • Training Simulators • Model-Predictive Control • Product Design Validation & Optimization • Analysis & Design Calculation Tools • Machine Design Purchase • Purchase & Pricing • Maplesoft Web Store • Request a Price Quote • Contact Maplesoft Sales • Elite Maintenance Program Support & Resources Support • Tech Support & Customer Service • Frequently Asked Questions • Online Product Help • Product Documentation • Download Product Updates Product Training • Online Product Training • On-Site Training Webinars & Events • Live Webinars • Recorded Webinars • Upcoming Events Content Hubs • Teacher Resource Center • Student Help Center • Maplesoft Welcome Center Publications • Technical Whitepapers • Application Briefs • E-Mail Newsletters • Maple Books • Math Matters Community • MaplePrimes • MapleCloud Examples & Applications • Mapl
i get "Error, invalid subscript selector"?? Edit Posted: January 29 2009 by conglomerate 20 Product: Maple T.A. 0 I have my maple code as follows. I don't see why I got "Error, invalid subscript selector"? can anybody help me? Thanks in advance!! >a := [2, 2, 3, 3, 3, 5]; b := [2, 2, 2, 3, 7]; for k to 10 do for j to 10 do c := b[k]; d := a[j]; if c = d then a := subsop(j = NULL, a); print(a); print(k); print(j); break else print(k); print(j); print(-1) end if end do end do; print(a); [2, 2, 3, 3, 3, 5] [2, 2, 2, 3, 7] [2, 3, 3, 3, 5] 1 1 [3, 3, 3, 5] http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20invalid%20subscript%20selector 2 1 3 1 -1 3 2 -1 3 3 -1 3 4 -1 Error, invalid subscript selector [3, 3, 3, 5] maple + Manage Tags Short words that describe your content. Used to categorize content. Combine multiple words with dashes(-). Separate tags with spaces. Tools Answer Reply Share Branch Create a new Post in reply Ask a related Question Flag More Contact Author Generate PDF 16583 views http://www.mapleprimes.com/questions/37980-Why-Do-I-Get-Error-Invalid-Subscript Preview You must enter a body with at least 15 characters That username is already taken by another member User name doesn't fit requirements Title: Comment: Enter your comment below. For information on using the editor, view the MaplePrimes Help. Subscribe: E-mail me when new comments are added to this You do not yet have a MaplePrimes user name, one is required to post to MaplePrimes, please enter one here. User Name: Cancel Preview Submit Answer this Question Add a Comment Preview You must enter a body with at least 15 characters That username is already taken by another member User name doesn't fit requirements Title: Comment: Enter your comment below. For information on using the editor, view the MaplePrimes Help. Subscribe: E-mail me when new comments are added to this You do not yet have a MaplePrimes user name, one is required to post to MaplePrimes, please enter one here. User Name: Cancel Preview Submit Share via: Share via e-mail: From: To: Custom Message (optional): Share on Facebook: You must be logged into your Facebook account in order to share via Facebook. Login to Facebook Share via GooglePlus: Click the button below to share this on Google+. A new window will open. Click Here to Share on Google+ Share via Twitter: You must be logged in to your Twitter account in order to share. Click the button below to login (a new window will open.) Login to Twitter Your message was sent! Send another message Ple
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/13339958/error-attempting-to-use-initial-conditions this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://199.71.183.11/questions/200415-Error-in-Lfh-Invalid-Subscript-Selector x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error in Error attempting to use initial conditions up vote 0 down vote favorite I'm doing a quick problem in Maple with a differential equation and a few initial conditions, but I'm getting an error message that I can't seem to understand given the context. Can anyone quickly elaborate on what's going on here? How do I fix this issue? > KVLl2 := -4*(i2(t)-2)-12*(i2(t)-i3(t)) = 0; error in matrix -16 i2(t) + 8 + 12 i3(t) = 0 > KVLl3 := -12*(i3(t)-i2(t))-4*i3(t)-3.5*(diff(i3(t), t)) = 0; / d \ -16 i3(t) + 12 i2(t) - 3.5 |--- i3(t)| = 0 \ dt / > mySoln := dsolve({KVLl2, KVLl3, i2(0) = 1, i3(0) = 1}, i2, i3); Error, (in dsolve) found the following equations not depending on the unknowns of the input system: {1 = 1} Thanks in advance maple share|improve this question asked Nov 12 '12 at 7:49 weskpga 61951128 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Maple doesn't know what to do with i2 and i3 you provided as target functions. If you look at the help of dsolve (?dsolve), you see that it requires its target functions to be specified in terms of their variables (t in this case) and as a list. Try using this dsolve({KVLl2, KVLl3, i2(0) = 1, i3(0) = 1}, {i2(t), i3(t)}); No errors here but no solution either (this might be related to your equation) share|improve this answer answered Nov 13 '12 at 10:31 Origin 1,79851319 add a comment| Your Answer dra
Lfh) invalid subscript selector Edit Posted: December 07 2013 by asa12 355 Product: Maple 0 after running the code below, run f2:=[ x3^2, x3*x2];g2:=[0,-1,1];h2:=[x1,0,0];Lf2h := Lfh(1,h2,f2, varlist); got Error, (in Lfh) invalid subscript selector can not see where is wrong Code: restart; with(combinat): list1 := permute([a, b, a, b, a, b], 3); list1a := subs(b=1,subs(a=0, list1)); n := 3; list1a := permute([seq(seq(k,k=0..1),k2=1..n)], n); list2 := permute([a, b, c, d, e, f, g, h, a, b, c, d, e, f, g, h, a, b, c, d, e, f, g, h], 3); list3 := subs(h=18,subs(g=17,subs(f=16,subs(e=15,subs(d=14,subs(c=13,subs(b=12,subs(a=11,list2)))))))); list3 := permute([seq(seq(k,k=11..18),k2=1..3)], 3); Iter:= iterstructs(Permutation([seq(seq(k,k=11..(10+nops(list1a))),k2=1..3)]), size=3): list3b := []; while not Iter[finished] do p:= Iter[nextvalue](); list3b := [p, op(list3b)]; end do: list5 := Matrix(nops(list1a)*nops(list3), 1); count := 1; for n from 1 to nops(list3) do temp1 := subs(1=list1a[1],list3[n]); for k from 11 to nops(list1a)+10 do temp1 := subs(k=list1a[k-10],temp1); od; list5[count] := temp1; count := count + 1; od; Lfh := proc(numoflevel, hx, fx, var) if numoflevel = 1 then hello := 0; for kk from 1 to nops(var) do hello := hello + diff(hx[kk], var[kk])*fx[kk]; od; return hello; else hello := 0; for kk from 1 to nops(var) do hello := hello + diff(Lfh(numoflevel-1, hx, fx, var), var[kk])*fx[kk]; od; return hello; end if; end proc: CheckRelativeRankZero := proc(h1, f1, g1,variables1,Count) IsFinish := 0; for ii from 1 to 8 do if IsFinish = 0 then Lf2h := Lfh(ii,h1,f1,variables1); Lgf2h := Lfh(1,[seq(Lf2h,n=1..nops(variables1))],g1,variables1); if Lgf2h = 0 then print(f1); print(Lf2h); print("find at ", ii); IsFinish := 1; return Lf2h; end if; end if; od; return 0; end proc: IsZeroMatrix := proc(h1) Iszero := 1; for ii from 1 to 3 do for jj from 1 to 3 do if h1[ii][jj] <> 0 then Iszero := 0; end if od; od; return Iszero; end proc: with(combstruct): list6:= convert(list5, list): list7 := []; for ii from 1 to nops(list6) do if list6[ii] <> 0 then list7 := [list6[ii], op(list7)]; end if; od; with(LinearAlgebra): with(VectorCalculus): varlist := [x1, x2, x3]; Iter:= iterstructs(Permutation(list7), size=2): Count := 1; procedure + Manage Tags Short words that describe your content. Used to categorize content. Combine multiple words with dashes(-). Separate tags with spaces. Tool