| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1753 人关注过本帖
标题:【疑问】asin函数的使用?
只看楼主 加入收藏
天籁雨声
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-6-28
收藏
 问题点数:0 回复次数:3 
【疑问】asin函数的使用?

今天发现数学库函数asin好象不太对劲,这个反正旋的计算好想不是我想要计算出来的结果,好奇怪啊?谁能告诉我一下是怎么回事吗? #include "stdafx.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <errno.h>

void main( void ) { double x, y;

printf( "Enter a real number between -1 and 1: " ); scanf( "%lf", &x ); y = asin( x ); printf( "Arcsine of %f = %f\n", x, y ); y = acos( x ); printf( "Arccosine of %f = %f\n", x, y ); }

搜索更多相关主题的帖子: asin 函数 疑问 
2005-10-27 14:50
天籁雨声
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2005-6-28
收藏
得分:0 
我晓得了~~~!!!!!!!!!!!!

游四海,交天下知己!
2005-10-27 16:27
czxj2003
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-12-20
收藏
得分:0 
我也与你一样碰到这样的问题.
asin问题
以下程序怎么画不出来asin图形
#include<stdio.h>
#include<math.h>
main()
{
double y;
int x,m;
clrscr();
for(y=1;y>=-1;y-=0.1)
{
m=asin(y)*10;
for(x=1;x<m;x++)
printf(" ");
printf("*");
for(;x<62-m;x++)
printf(" ");
printf("*\n");
}
}
2005-12-21 09:36
qhotcool
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2012-1-17
收藏
得分:0 
回复 3楼 czxj2003
#include "stdio.h"
#include"math.h"
void main()
{
 double y;
 int m,x;
 for(y=1;y>0;y-=0.1)
 {m=asin(y)*10;
  for(x=1;x<m;x++)
  printf(" ");
  printf("*");
  for(;x<31-m;x++)
  printf(" ");
  printf("*\n");}
 for(y=0;y>=-1;y-=0.1)
 {m=asin(y)*10;
  for(x=1;x<(32-m);x++)
  printf(" ");
  printf("*");
  for(;x<62+m;x++)
  printf(" ");
  printf("*\n");}
   
}

2012-01-21 13:03
快速回复:【疑问】asin函数的使用?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017623 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved