vector gives 0 integral

3 views (last 30 days)
Gavin Seddon
Gavin Seddon on 28 Jul 2021
Commented: Star Strider on 3 Nov 2021
Hello
I have plotted a vector which has 3 planes.. When I integrate the integral is 0. There are negative regions, yet I expect a number. I us
sd = trapz((z),0,20)
sd =
0
will someone tell me if there is an error with my use of trapz?
sr

Accepted Answer

Star Strider
Star Strider on 28 Jul 2021
There quite definitely is!
In your call to it:
sd = trapz((z),0,20)
the function interprets ‘z’ (the parentheses aren’t necessary) as the indepdent variable ‘x’, 0 as the dependent variable ‘y’, and 20 as the dimension. Integrating 0 produces 0 as the result.
See the documentation on trapz.
.
  30 Comments
Gavin Seddon
Gavin Seddon on 3 Nov 2021
Thx
the result is
con = eval(vecInt)
con =
344*sin((500436125687261696*sin((16940918583*cos((16940918583*cos((16940918583*cos((153639*cos((144125604197931365568*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/59604644775390625 + (3267773954505189164*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/48506384094556175 + (5685004955689819712*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/2384185791015625 - 1689/2000)*((39120558738952133773605350221763784105679225592077737*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/9313225746154785156250000000000000000000000000000 + (11508730420873628018762065388876926714218419394751687105048989*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/372529029846191406250000000000000000000000000000000000000 - (91087294002736535382844815295133583863901*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/37252902984619140625000000000000000000 + (14191748220645224846328784005214282029379497389876241*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/121265960236390437500000000000000000000000000000000 + (58056830887811900065697700544716399315194594059242121342674651*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/1862645149230957031250000000000000000000000000000000000000 + (1543102431646143825120272750838531160347349393772283*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/372529029846191406250000000000000000000000000000 - (2309234800184278400153465292275986384491039*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/931322574615478515625000000000000000000 + (124416147043984741323121230200088077514254108203110635030193939*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/303164900590976093750000000000000000000000000000000000000000 - (837720112467010304758087863435089978401527*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/12126596023639043750000000000000000000000))/1250 + (96471*cos((724311742502702996928*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/298023223876953125 + (16422391151554832444*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/242531920472780875 + (28570328419489093952*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/11920928955078125 + 1153/500)*((196602680180101298485243501274231413412886331809387477*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/46566128730773925781250000000000000000000000000000 + (57837804958575772758826609765825577384874037405573175131763769*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/1862645149230957031250000000000000000000000000000000000000 - (457764579764551342355319151626981237756921*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/186264514923095703125000000000000000000 + (71321469492252200266054879361667941316977474103116061*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/606329801181952187500000000000000000000000000000000 + (291768035100728814068186846507472511574444397620408488409032671*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/9313225746154785156250000000000000000000000000000000000000 + (7754952475972473600364821204693321134908564205762943*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/1862645149230957031250000000000000000000000000000 - (11605195976644951832081153050319893235796819*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/4656612873077392578125000000000000000000 + (625260700639578268694152380526321233002944767423300411829057719*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/1515824502954880468750000000000000000000000000000000000000000 - (4210011939011524630621316962247273278037067*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/60632980118195218750000000000000000000000))/800 + (1811511*cos((1702800269405591660928*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1490116119384765625 + (38607757456102841944*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1212659602363904375 + (67166608070737869952*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/59604644775390625 + 441/250)*((231098763924353020279221381980962417927798364599845801*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/116415321826934814453125000000000000000000000000000 + (67986078428739099701888367105538138960350982303181691556663197*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/4656612873077392578125000000000000000000000000000000000000 - (538084366169520300073099244347290723847773*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/465661287307739257812500000000000000000 + (83835598913651823453232976439748266684737030906968593*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1515824502954880468750000000000000000000000000000000 + (342961917928320138087779707051695279021708640305235406909282523*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/23283064365386962890625000000000000000000000000000000000000 + (9115643438063002979704103246966275129336258878865659*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/4656612873077392578125000000000000000000000000000 - (13641454139107766012408170368748558546082847*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/11641532182693481445312500000000000000000 + (734969507617660660403997299169210400395705578490580077223094547*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/3789561257387201171875000000000000000000000000000000000000000 - (4948704434349846816286595717225180096052471*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/151582450295488046875000000000000000000000))/250000 - 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((153639*cos((144125604197931365568*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/59604644775390625 + (3267773954505189164*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/48506384094556175 + (5685004955689819712*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/2384185791015625 - 1689/2000)*((39120558738952133773605350221763784105679225592077737*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/9313225746154785156250000000000000000000000000000 + (11508730420873628018762065388876926714218419394751687105048989*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/372529029846191406250000000000000000000000000000000000000 - (91087294002736535382844815295133583863901*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/37252902984619140625000000000000000000 + (14191748220645224846328784005214282029379497389876241*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/121265960236390437500000000000000000000000000000000 + (58056830887811900065697700544716399315194594059242121342674651*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/1862645149230957031250000000000000000000000000000000000000 + (1543102431646143825120272750838531160347349393772283*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/372529029846191406250000000000000000000000000000 - (2309234800184278400153465292275986384491039*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/931322574615478515625000000000000000000 + (124416147043984741323121230200088077514254108203110635030193939*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2)/303164900590976093750000000000000000000000000000000000000000 - (837720112467010304758087863435089978401527*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/12126596023639043750000000000000000000000))/1250 + (96471*cos((724311742502702996928*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/298023223876953125 + (16422391151554832444*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/242531920472780875 + (28570328419489093952*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/11920928955078125 + 1153/500)*((196602680180101298485243501274231413412886331809387477*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/2000)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/46566128730773925781250000000000000000000000000000 + (57837804958575772758826609765825577384874037405573175131763769*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*sin((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/1862645149230957031250000000000000000000000000000000000000 - (457764579764551342355319151626981237756921*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*sin((3573*x)/10000 + 13/8)*sin((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)*cos((7458176583*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/1000000000 + 1153/500))/186264514923095703125000000000000000000 + (71321469492252200266054879361667941316977474103116061*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8)^2*cos((8766794979*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/2500000000 + 441/250)*sin((3573*x)/10000 + 13/8)*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/606329801181952187500000000000000000000000000000000 + (291768035100728814068186846507472511574444397620408488409032671*sin((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8)*sin((1484049123*cos((16940918583*cos((16940918583*cos((16940918583*cos((3573*x)/10000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/10000000000 + 13/8))/200000000 - 1689/20... Output truncated. Text exceeds maximum line length for Command Window display.
>> fprintf('%23.15E',con)
Error using fprintf
Conversion to double from sym is not possible.
>>
Star Strider
Star Strider on 3 Nov 2021
That expression is a function of ‘x’, so provide a value for it (scalar, vector, using subs if necessary), evaluate it, then print the double result as a funciton of the values of ‘x’.
.

Sign in to comment.

More Answers (3)

Gavin Seddon
Gavin Seddon on 29 Jul 2021
Hello
Yes John is correct, I tried with no parenth and I see the fun integral not its value which is wht I need.
  4 Comments
Gavin Seddon
Gavin Seddon on 29 Jul 2021
Hello
It is a cubic fun of an object moving in 3D space and from your description trapezoidal integration does a better job in 3D than int.
Star Strider
Star Strider on 29 Jul 2021
Thank you!
Just curious as to what you are integrating.
.

Sign in to comment.


Gavin Seddon
Gavin Seddon on 29 Jul 2021
Hello
When I searched 'vector integration' the trapezoid method came-up
yet is this correct?

Gavin Seddon
Gavin Seddon on 4 Aug 2021
Hello
I am integrating the number of molecular motions in 10e-15s.

Tags

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!