我是靠谱客的博主 明理山水,这篇文章主要介绍matlab 中acos,Matlab:返回反余弦(acos)的完整解(Matlab: return complete solution of inverse cosine (acos))...,现在分享给大家,希望可以做个参考。

Here's a numerical solution; like Benoit_11 I don't see the point of doing it symbolically in this context.

There are two solutions within the interval [-pi, pi], the larger one being returned by acos:

% solution within [0, pi]

theta1 = acos(x);

% solution within [-pi, 0]

theta2 = -acos(x);

These solutions repeat at steps of 2 pi. The number of possible steps downwards and upwards can be determined by the integer part of the distance between the basic solution and the respective limit (lower and upper), in units of 2 pi. For theta1:

% repetitions in 2 pi intervals within limits

sd = floor((theta1 - lower) / (2 * pi));

su = floor((upper - theta1) / (2 * pi));

theta1 = (-sd : su) * 2 * pi + theta1

And the same for theta2:

% repetitions in 2 pi intervals within limits

sd = floor((theta2 - lower) / (2 * p

最后

以上就是明理山水最近收集整理的关于matlab 中acos,Matlab:返回反余弦(acos)的完整解(Matlab: return complete solution of inverse cosine (acos))...的全部内容,更多相关matlab内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部