
y=4/pi * arccos(x/4) 및 2-sqrt(x) 함수를 플롯하려고 합니다(이미지 참조). AP Central에서 나온 내용입니다. 두 이미지를 모두 표시하는 데 사용할 적절한 축을 찾는 데 문제가 있습니다. 문제 없이 제곱근 함수를 그릴 수 있지만 역삼각 함수를 추가하려고 하면 혼란스럽습니다.
어떤 도움이라도 주시면 감사하겠습니다. 나는 운이 좋지 않아 Google을 시도했습니다.
\documentclass[11pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{adjustbox}
\usepackage{fullpage}
\usepackage[top=2cm, bottom=4.5cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd}
\usepackage{multicol}
\usepackage{enumerate}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{amssymb}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc, positioning}
\usetikzlibrary{arrows,shapes,positioning,snakes}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{arrows.meta,bending}
\tikzset{font=\footnotesize}
\setlength{\parindent}{0.0in}
\setlength{\parskip}{0.05in}
\newcommand*{\dprime}{^{\prime\prime}\mkern-1.2mu}
\newcommand*{\trprime}{^{\prime\prime\prime}\mkern-1.2mu}
% Edit these as appropriate
\newcommand\course{AP Calculus AB}
\pagestyle{fancy}
\headheight 35pt
\lhead{Mark Sparks}
\chead{\textbf{Topic 8.5 Finding the Area Between Curves \\ Expressed as Functions of \(x\) }}
\rhead{\course \\ \today}
\lfoot{Mr. Bennett}
\cfoot{Flint Hill Upper School}
\rfoot{\small\thepage}
\headsep 1.5em
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\arraystretch}{1.5}
\begin{document}
\subsection*{AP Test Preparation}
\begin{center}
\begin{tikzpicture}[scale=.75]
\begin{axis}[thick,
scale only axis,
grid=major,
axis lines=middle,
inner axis line style={-Triangle},
ytick={-1,0,...,3},
xtick={-1,0,...,5},
ymin=-1,
ymax=3,
xmin=-1,
xmax=5,
]
\addplot[thick,samples=1000,domain=0:4]{2-sqrt(x)};
\addplot[thick,samples=1000,domain=0:4]{1.27324*acos(x/4)
\node at (2,1){\(R\)};
\end{axis}
\end{tikzpicture}
\end{center}
\begin{enumerate}
\item Let \(R\) be the region in the first quadrant bounded above by the graph of \(y=\dfrac{4}{\pi}\cos^{-1}\left(\dfrac{x}{4}\right)\) and below by the graph of \(y=2-\sqrt{x}\), as shown in the figure above. What is the area of the region?
A. \(\dfrac{4}{3}\) \\
B. \(\dfrac{16}{\pi}+\dfrac{8}{3}\) \\
C. \(\dfrac{16}{\pi}-\dfrac{8}{3}\) \\
D. \(\dfrac{16}{3}\) \\
\rule{\textwidth}{.5pt}
\end{enumerate}
\end{document}
답변1
귀하의 코드에는 2개의 실수가 있습니다.
첫째, \addplot[thick,samples=1000,domain=0:4]{1.27324*acos(x/4)
닫힌 중괄호와 세미열을 놓쳤습니다 };
.
둘째, acos
함수는 결과를 정도 단위로 반환합니다. 따라서 acos(0)은 90을 반환합니다. 결과가 라디안이 되려면 파이/180을 곱합니다. (4/pi) * acos(x) 및 (pi/180) * (4/pi)는 1/45(약 0.02222)이므로 간단히 바꾸십시오.
\addplot[thick,samples=1000,domain=0:4]{1.27324*acos(x/4)
~에 의해
\addplot[thick,samples=1000,domain=0:4]{0.02222*acos(x/4)};
그리고 당신은 다음을 얻습니다: