📄 legsnng.m
字号:
function [f,dfdt] = legsnNG(theta,w,h,b)
% legsnNG Evaluate f(theta) and fprime(theta) for the picnic leg problem.
% Used with the Newton's method.
%
% Synopsis: [f,dfdt] = legsnNG(theta)
%
% Input: theta = angle of table leg in radians
% w,h,b = table dimensions
%
% Output: f = value of function that, when theta is a root, is equal to zero
% dfdt = fprime(theta), ie. df/dtheta
f = w*sin(theta) - h*cos(theta) - b;
dfdt = w*cos(theta) + h*sin(theta);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -