HP Forums
Attached integral calculator cannot solve - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Attached integral calculator cannot solve (/thread-13993.html)



Attached integral calculator cannot solve - yingwuluo - 11-15-2019 11:15 AM

Attached integral calculator cannot solve


RE: Attached integral calculator cannot solve - Gerson W. Barbosa - 11-15-2019 11:49 AM

Have you tried numerical integration? No Prime here, but on the HP 50g we can do

'∫(-2,2,(X^3*COS(X/2)+1/2)*√(4-X^2),X)'

→NUM

3.14159265359


RE: Attached integral calculator cannot solve - Aries - 11-15-2019 12:05 PM

CX II yields the same result (that is pi), try numerical mode as mentioned Wink

[Image: int-pi.jpg]


RE: Attached integral calculator cannot solve - Werner - 11-15-2019 12:56 PM

You just have to realise that

'∫(-2,2,(X^3*COS(X/2)+1/2)*√(4-X^2),X)'
= '∫(-2,2,X^3*COS(X/2)*√(4-X^2),X)' + '∫(-2,2,1/2*√(4-X^2),X)'

The first part is an odd function, so the integral is zero, and we are left with the easy second part.

Cheers, Werner


RE: Attached integral calculator cannot solve - rombva - 11-15-2019 01:30 PM

(11-15-2019 11:15 AM)yingwuluo Wrote:  Attached integral calculator cannot solve

numerically: int((x^3*cos(x/2)+1/2)*√(4-X^2),x,-2,2) [shift] [enter] returns 3.14159265359.

symbolically: simplify(subst(int((x^3*cos(x/2)+1/2)*√(4-X^2),x,-2,2), x=2*sin(t))) returns pi.


RE: Attached integral calculator cannot solve - rprosperi - 11-15-2019 02:04 PM

With that answer, to access the WiFi network, do you suppose the 10th digit should be a 3 or a 4 ? Setting a calculator to Fix 9 would lead most folks to use the 4, while the 10th digit actually is 3. Not sure what the network admin had in mind. Who would guess that numerical rounding rules would need to be specified for a WiFi password? Smile


RE: Attached integral calculator cannot solve - toml_12953 - 11-15-2019 02:20 PM

(11-15-2019 11:15 AM)yingwuluo Wrote:  Attached integral calculator cannot solve

It works for me:

[Image: Prime%20Integral.jpg?dl=1]


RE: Attached integral calculator cannot solve - Albert Chan - 11-15-2019 02:25 PM

(11-15-2019 12:56 PM)Werner Wrote:  You just have to realise that

'∫(-2,2,(X^3*COS(X/2)+1/2)*√(4-X^2),X)'
= '∫(-2,2,X^3*COS(X/2)*√(4-X^2),X)' + '∫(-2,2,1/2*√(4-X^2),X)'

The first part is an odd function, so the integral is zero, and we are left with the easy second part.

To finish, second part = ½ area of half-circle (radius 2) = ½ (2 pi) = pi

(11-15-2019 02:04 PM)rprosperi Wrote:  With that answer, to access the WiFi network, do you suppose the 10th digit should be a 3 or a 4 ?

Wi-Fi password is the first 10 digits of the answer.
That implied round-toward-zero ⇒ password = 3141592653 Smile


RE: Attached integral calculator cannot solve - toml_12953 - 11-15-2019 02:42 PM

(11-15-2019 02:25 PM)Albert Chan Wrote:  
(11-15-2019 12:56 PM)Werner Wrote:  You just have to realise that

'∫(-2,2,(X^3*COS(X/2)+1/2)*√(4-X^2),X)'
= '∫(-2,2,X^3*COS(X/2)*√(4-X^2),X)' + '∫(-2,2,1/2*√(4-X^2),X)'

The first part is an odd function, so the integral is zero, and we are left with the easy second part.

To finish, second part = ½ area of half-circle (radius 2) = ½ (2 pi) = pi

(11-15-2019 02:04 PM)rprosperi Wrote:  With that answer, to access the WiFi network, do you suppose the 10th digit should be a 3 or a 4 ?

Wi-Fi password is the first 10 digits of the answer.
That implied round-toward-zero ⇒ password = 3141592653 Smile

Statisticians either round half to even or round half to odd:

Round half to even:
1.235 ==> 1.24
1.245 ==> 1.24
1.255 ==> 1.26
1.265 ==> 1.26

Round half to odd:
1.225 ==> 1.23
1.235 ==> 1.23
1.245 ==> 1.25
1.255 ==> 1.25

This way the rounding error is minimized in large populations of data.


RE: Attached integral calculator cannot solve - lrdheat - 11-15-2019 07:02 PM

Just for the fun of it, I tried the definite integral on my CASIO fix-991EX, and it came up with the symbol for pi!


RE: Attached integral calculator cannot solve - rprosperi - 11-16-2019 03:13 AM

(11-15-2019 07:02 PM)lrdheat Wrote:  Just for the fun of it, I tried the definite integral on my CASIO fix-991EX, and it came up with the symbol for pi!

Well... that's only 2 digits! No WiFi for you!


RE: Attached integral calculator cannot solve - lrdheat - 11-16-2019 04:35 PM

Seinfeld! Quotable for almost every aspect of life!


RE: Attached integral calculator cannot solve - dan_h - 11-16-2019 04:57 PM

Using Mathematica Home Edition 12.0, it took a little longer than usual with other equations but finally produced the Pi symbol. On my G2 it returned the equation unsolved, but when I hit Simplify, it returned Pi.


RE: Attached integral calculator cannot solve - swagner53 - 11-16-2019 07:35 PM

The Prime G1 had no problem coming up with the Pi symbol in CAS or 3.141592... in Home right away. Odd thing was both worked straight off using lowercase x, then when I tried later in Home received an "Error: Syntax Error" message until I changed to an uppercase X. Took 1.034_s in CAS and .588_s in Home.

BTW, also tried solving in Mathematica 12 Home Edition on an 8-core, 64 GB RAM PC with 2 TB SSD. It took .656 seconds to return the Pi symbol, slightly longer than the HP Prime G1 in Home mode.