乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 86|回复: 4

[编程交流] find tan(angle)

[复制链接]

26

主题

67

帖子

41

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
130
发表于 2022-7-6 09:27:38 | 显示全部楼层 |阅读模式
how to find tan of angle in lisp
my code
 
tanA= x/y
i know A  and x
how to get y   ?
help me.
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 09:49:20 | 显示全部楼层
So, you know the angle and the oposite leg and look for adjacent leg?
 
  1. (setq theY (/ theX (/ (sin theAngle) (cos theAngle))))
 
Regards,
Mircea
回复

使用道具 举报

26

主题

67

帖子

41

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
130
发表于 2022-7-6 10:09:58 | 显示全部楼层
thanks,
 
i did try it. but if angle is greater than 90 then how to find y?
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 10:20:50 | 显示全部楼层
The above trigonometric formula works only in right-angled triangles - for your case need to split your current triangle in right-angled triangles and perform calculations in each to get the appropriate formula.
Can you post a sketch of your case?
 
Regards,
Mircea
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 10:39:38 | 显示全部楼层
Or, if you know the size of triangle's third leg may use the cosine theorem.
 
Regards,
Mircea
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-7 03:04 , Processed in 0.369680 second(s), 62 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表