<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
<br />
<b>Warning</b>:  Undefined array key "HTTP_REFERER" in <b>/home/sixthfor/public_html/steve/wordpress/wp-content/plugins/search-hilite.php</b> on line <b>88</b><br />
{"id":40,"date":"2005-04-02T22:49:54","date_gmt":"2005-04-02T21:49:54","guid":{"rendered":"http:\/\/sixthform.info\/steve\/wordpress\/?p=40"},"modified":"2006-10-18T20:32:38","modified_gmt":"2006-10-18T19:32:38","slug":"using-cosec","status":"publish","type":"post","link":"https:\/\/sixthform.info\/steve\/wordpress\/?p=40","title":{"rendered":"Using cosec"},"content":{"rendered":"<p>British (and who else?)<sup>1<\/sup> prefer to use <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/5546dc2fbd3c831486698f73c8dffd41.gif' title='\\cosec x' alt='\\cosec x' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Ccosec+x','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a> for <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/00be57a1b0c6b690ec6e517043ea3151.gif' title='\\frac{1}{\\sin x}' alt='\\frac{1}{\\sin x}' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Cfrac%7B1%7D%7B%5Csin+x%7D','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a> but <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/c51d7e23458ca0e7373a8ed6ab56b2b9.gif' title='\\LaTeX' alt='\\LaTeX' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5CLaTeX','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a> doesn&#8217;t recognise \\cosec as a command. You could use \\mathrm{cosec} which produces <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/c737479818d83c6188fdaa43083edf3c.gif' title='\\mathrm{cosec}' alt='\\mathrm{cosec}' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Cmathrm%7Bcosec%7D','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a> or even use Babel, but a very simple method would be to add a line in <strong>class.latexrender.php<\/strong> Just after<br \/>\n<code>        $string .= \"\\begin{document}\\n\";<\/code><br \/>\nadd the line<br \/>\n<code>        $string .= \"\\newcommand{\\cosec}{\\operatorname{cosec}}\\n\";<\/code><br \/>\nand then you&#8217;ll be able to use \\cosec wherever you want eg <a href=\"javascript:void(0)\"><img src='\/steve\/wordpress\/latexrender\/pictures\/66a277d05aa17cdbb29481f44ef74227.gif' title='\\cosec^2x=1+\\cot^2x' alt='\\cosec^2x=1+\\cot^2x' border=0 align=absmiddle onclick=\"newWindow=window.open('\/steve\/wordpress\/latexrender\/latexcode.php?code=%5Ccosec%5E2x%3D1%2B%5Ccot%5E2x','latexCode','toolbar=no,location=no,scrollbars=yes,resizable=yes,status=yes,width=375,height=100,left=200,top=100');\"><\/a><\/p>\n<p>You can find a whole lot more newcommands at Birmingham (UK) University Maths Postgrad Committee&#8217;s <a target=\"_blank\" href=\"http:\/\/web.mat.bham.ac.uk\/pgweb\/Yr2002\/LaTeXcommands.html\" >Latex Commands<\/a> page<\/p>\n<p><small>1. Russian Babel has the \\cosec command; so who else uses cosec rather than csc?<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>British (and who else?)1 prefer to use for but doesn&#8217;t recognise \\cosec as a command. You could use \\mathrm{cosec} which produces or even use Babel, but a very simple method would be to add a line in class.latexrender.php Just after $string .= &#8220;\\begin{document}\\n&#8221;; add the line $string .= &#8220;\\newcommand{\\cosec}{\\operatorname{cosec}}\\n&#8221;; and then you&#8217;ll be able to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-latexrender"],"_links":{"self":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sixthform.info\/steve\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}