Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 68d3e51

Browse files
Add example for :colnames
[skip ci]
1 parent 466ee13 commit 68d3e51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎example.org

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ This example is from the document of the function =implicit_plot3d=.
8585
| 53 | 9007199254740997 |
8686
| 54 | 18014398509482143 |
8787

88+
You can also pass the header argument =:colnames= (an elisp) list to specify the column names.
89+
#+begin_src sage :results table :exports both :colnames '("a" "Smallest prime greater than 2^a")
90+
[(a, next_prime(2^a)) for a in range(100, 105)]
91+
#+end_src
92+
93+
#+RESULTS:
94+
| a | Smallest prime greater than 2^a |
95+
|-----+----------------------------------|
96+
| 100 | 1267650600228229401496703205653 |
97+
| 101 | 2535301200456458802993406410833 |
98+
| 102 | 5070602400912917605986812821771 |
99+
| 103 | 10141204801825835211973625643089 |
100+
| 104 | 20282409603651670423947251286127 |
101+
102+
88103
** Elliptic curve
89104
#+begin_src sage :exports both
90105
E = EllipticCurve(u'389a'); E

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /