To print higher-resolution math symbols, click the
Hi-Res Fonts for Printing button on the jsMath control panel.
If the math symbols print as black boxes, turn off image alpha channels
using the Options pane of the jsMath control panel.

jsMath
First
last edited on September 10, 2010 12:53 PM by moisher
 Typeset
#here is one way to find the number of digits in an integer
b = str(p) 
evaluate
       
evaluate
       

Type: <type 'type'>

Definition: str( [noargspec] )

Docstring:

str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Type: <type 'type'>

Definition: str( [noargspec] )

Docstring:

str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
evaluate
       
115792089237316195423570985008687907853269984665640564039457584007913129\
639937
115792089237316195423570985008687907853269984665640564039457584007913129639937
evaluate
       
False
False
evaluate
       
47536/3
47536/3
evaluate
       
<type 'sage.rings.integer.Integer'>
<type 'sage.rings.integer.Integer'>
evaluate
       
0
0
evaluate
       
3
51
3
51
evaluate
       
evaluate
       
490
490
evaluate
       
evaluate
       
8
9
10
720
8
9
10
720
evaluate
       
Hi, I am a string
Hi, I am a string
evaluate
       
Hi, I am a string
<type 'str'>
Hi, I am a string
<type 'str'>
evaluate
       
evaluate
       
7 == 9 is False
7 == 7 is True
7 > 9 is False
7 > 7 is False
7 != 9 is True
7 == 9 is False
7 == 7 is True
7 > 9 is False
7 > 7 is False
7 != 9 is True
evaluate
       
10 is greater than 8
x =  10
end of little program
10 is greater than 8
x =  10
end of little program
evaluate
       
False
False
evaluate
       
a is:  True
b is:  False
a and b is:  False
a or b is True
not a is: False
a is:  True
b is:  False
a and b is:  False
a or b is True
not a is: False
evaluate
       
1
2
4
8
16
1
2
4
8
16
evaluate
       
1 3 9 27 81
1 3 9 27 81
evaluate
       
evaluate
       
1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97
101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169
173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241
245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313
317 321 325 329 333 337 341 345 349 353 357 361 365 369 373 377 381 385
389 393 397 401 405 409 413 417 421 425 429 433 437 441 445 449 453 457
461 465 469 473 477 481 485 489 493 497 501 505 509 513 517 521 525 529
533 537 541 545 549 553 557 561 565 569 573 577 581 585 589 593 597 601
605 609 613 617 621 625 629 633 637 641 645 649 653 657 661 665 669 673
677 681 685 689 693 697 701 705 709 713 717 721 725 729 733 737 741 745
749 753 757 761 765 769 773 777 781 785 789 793 797 801 805 809 813 817
821 825 829 833 837 841 845 849 853 857 861 865 869 873 877 881 885 889
893 897 901 905 909 913 917 921 925 929 933 937 941 945 949 953 957 961
965 969 973 977 981 985 989 993 997
1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313 317 321 325 329 333 337 341 345 349 353 357 361 365 369 373 377 381 385 389 393 397 401 405 409 413 417 421 425 429 433 437 441 445 449 453 457 461 465 469 473 477 481 485 489 493 497 501 505 509 513 517 521 525 529 533 537 541 545 549 553 557 561 565 569 573 577 581 585 589 593 597 601 605 609 613 617 621 625 629 633 637 641 645 649 653 657 661 665 669 673 677 681 685 689 693 697 701 705 709 713 717 721 725 729 733 737 741 745 749 753 757 761 765 769 773 777 781 785 789 793 797 801 805 809 813 817 821 825 829 833 837 841 845 849 853 857 861 865 869 873 877 881 885 889 893 897 901 905 909 913 917 921 925 929 933 937 941 945 949 953 957 961 965 969 973 977 981 985 989 993 997
evaluate
       
<type 'sage.rings.rational.Rational'>
3/4
<type 'sage.rings.rational.Rational'>
<type 'sage.rings.rational.Rational'>
3/4
<type 'sage.rings.rational.Rational'>
evaluate
       
41/28
41/28
evaluate
       
0
1
4
9
16
0
1
4
9
16
evaluate
       
0 1 4 9 1 2 5 10 4 5 8 13 9 10 13 18 16 17 20 25
0 1 4 9 1 2 5 10 4 5 8 13 9 10 13 18 16 17 20 25
evaluate
       
evaluate
       
170141183460469231731687303715884105757
170141183460469231731687303715884105757
evaluate
       
evaluate
       
'170141183460469231731687303715884105757'
'170141183460469231731687303715884105757'
evaluate
       
39
39
evaluate