完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
当我错了时纠正我,但我相信31 =& B 00011111而不是00110001 !!所以你的阵列Xor'ed是33而不是69!B.t.w。
要进行按位异或,请使用bitXor(x,y)函数。 它可以在内置函数/按位下找到。 -------------------------------------------------- --------------------------------------------- S. Wubbels测试工程师 MST - 个人通信飞利浦半导体Gerstweg 2 Nijmegen电话:(+ 35)(0)24 353 29 90电子邮件:Sander.Wubbels@philips.com ---------------- -------------------------------------------------- ------------------------------- Scott Thompson @ lvld.agilent.com于14/08/2001 12:14:39发布 作者:owner-vrf@lvld.agilent.comTo:“'vrf@lvld.agilent.com'”cc:(bcc:Sander Wubbels / NYM / SC / PHILIPS)主题:vrf XOR FUNCtiONClassification:大家好我正在努力表演 例如六个数字的XOR函数: - XOR 31,48,44,54,20,20 = 69结果将是69.麻烦的是VEE 5.01中的XOR函数只给0或1所以我必须将每个数字转换为 二进制数组,然后通过XOR函数通过每一个eg31 = 00110001 48 = 01001000通过XOR给出= 01111001然后把01111001XOR与下一个数字44 = 010001010 = ......依此类推,直到最后 数字20如果我可以使用Windows计算器进行此计算,必须采用更加智能的方式来实现VEE。任何帮助都会很棒!非常感谢Scott ThompsonCHANNEL MASTER UK ----------------- -------------------------------------------------- - 这是由Majordomo管理的“vrf”maillist。 要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。 订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.--- -------------------------------------------------- -------------------------------------------------- -----------------------------------这是由Majordomo管理的“vrf”maillist。 要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。 订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.--- -------------------------------------------------- ---------------- 以上来自于谷歌翻译 以下为原文 Correct me when I am wrong, but I believe 31 = &B 00011111 in stead of 00110001 !! So your array Xor'ed is 33 in stead of 69! B.t.w. To do a bitwise XOR, use the bitXor(x,y) function. It can be found found under built-in functions / bitwise. ----------------------------------------------------------------------------------------------- S. Wubbels Test Engineer MST - Personal Communications Philips Semiconductors Gerstweg 2 Nijmegen Tel.: (+35) (0)24 353 29 90 E-mail: Sander.Wubbels@philips.com ------------------------------------------------------------------------------------------------- Scott Thompson @lvld.agilent.com on 14/08/2001 12:14:39 Sent by: owner-vrf@lvld.agilent.com To: "[email=]'vrf@lvld.agilent.com[/email]'" cc: (bcc: Sander Wubbels/NYM/SC/PHILIPS) Subject: vrf XOR FUNCTION Classification: Hi everyone I am trying to perform an XOR function on six numbers for example :- XOR 31,48,44,54,20,20 = 69 the result will be 69. The trouble is the XOR function in VEE 5.01 only gives 0 or 1 so i have to convert each number into a binary array and then pass each one though the XOR function e.g. 31=00110001 48=01001000 put through XOR gives = 01111001 then put 01111001 XOR with the next number 44=010001010 = ......and so on and so on until the last number 20 if i can do this calculation using the Windows Calculator there must be an easier way of doing this with VEE. Any help would be great! Many thanks Scott Thompson CHANNEL MASTER UK --------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.agilent.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.agilent.com". --------------------------------------------------------------------- --------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.agilent.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.agilent.com". --------------------------------------------------------------------- |
|
相关推荐
2个回答
|
|
大家好我想尝试对6个数字执行XOR功能,例如:-XOR 31,48,44,54,20,20 = 69结果将是69.麻烦的是VEE 5.01中的XOR功能只给0或1所以我
必须将每个数字转换为二进制数组,然后通过XOR函数通过每个数字eg31 = 00110001 48 = 01001000通过XOR给出= 01111001然后将01111001XOR与下一个数字44 = 010001010 = ......依此类推 所以直到最后一个数字20如果我可以使用Windows计算器进行此计算,必须有更加方便的方法来使用VEE。任何帮助都会很棒!非常感谢Scott ThompsonCHANNEL MASTER UK ------------ -------------------------------------------------- -------这是由Majordomo管理的“vrf”maillist。 要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。 订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.--- -------------------------------------------------- ---------------- 以上来自于谷歌翻译 以下为原文 Hi everyone I am trying to perform an XOR function on six numbers for example :- XOR 31,48,44,54,20,20 = 69 the result will be 69. The trouble is the XOR function in VEE 5.01 only gives 0 or 1 so i have to convert each number into a binary array and then pass each one though the XOR function e.g. 31=00110001 48=01001000 put through XOR gives = 01111001 then put 01111001 XOR with the next number 44=010001010 = ......and so on and so on until the last number 20 if i can do this calculation using the Windows Calculator there must be an easier way of doing this with VEE. Any help would be great! Many thanks Scott Thompson CHANNEL MASTER UK --------------------------------------------------------------------- This is the "vrf" maillist, managed by Majordomo. To send messages to this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and unsubscriptions are done through the address "vrf-request@lvld.agilent.com". If you need details, just send a message containing the text "help" to "vrf-request@lvld.agilent.com". --------------------------------------------------------------------- |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
1226 浏览 0 评论
2348 浏览 1 评论
2159 浏览 1 评论
2024 浏览 5 评论
2906 浏览 3 评论
972浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
705浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
806浏览 0评论
1228浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 05:11 , Processed in 1.437770 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号