After constantly using a calculator to convert between Ether units i thought it would neat toimplement the EthereumJS-Unitslibrary and BigNumber library on awebsite for everyone to use.There is a simple and full converterpage, since the majority wouldn'tbother for any other units than Ether, Gwei and Wei.
I am new to programming and I am trying to make a simple unit converter in python. I want to convert units within the metric system and metric to imperial and vice-versa. I have started with this code and I found this method is slow and in-efficient, How can I code this more efficiently?
I downloaded and installed Prime 7.0 and the new converter that is supposed to convert MC15 worksheets to Prime 7.0 worksheets. The first two MC15 worksheets I converted were claimed to have been converted, but did not work properly in Prime 7.
Thanks for the file. The Prime 6 converter has the same issue. The units are not properly recognized until I delete one and replace it. Than the other units in that calculation are also recognized and displayed in Blue
But of course it could be implemented in a better way. Automatic recalculation at startup could be an option to be turned on or off in the settings. The converter could/should be modified to create a "previous view" so the sheet displays with correct labels, etc.
I tend to disagree. If MC15 is able to interpret the sheet without running into troubles, then the converter should do so, too. And it sure is possible as the converter in Prime 6 (which needs a full installation of MC15) could convert the sheet into a perfectly workable Prime 6 sheet without any troubles. The "algorithm" of doing the job seems quite simple:
1) if the name of a variable in the MC15 sheet is identical to the name of a predefined unit in MC15 AND that variable is undefined so far, it should be considered a unit
2) if a variable in the MC15 sheet is defined and later used in a unit placeholder, it should be considered a unit And yes, I confess that used defined units may require some more thinking than that simple rule #2. But the file in question does not use any user-defined units anyway and should therefore be converted correctly in any case. If the P6 converter (in no way perfect) could do it, the P7 converter must be able to to so, too. If its not able to do, then thats a severe bug.
To me it looks like PTC when they developed the converter for Prime 7 once again did a .... let's call it... PTC-job, as they also did so often in the past. Not much good usually comes from PTC
Thanks again. I have MC15 installed and still have Prime 6 and its converter installed. Perhaps I should use the Prime 6 converter to convert my old MC15 files, and then I should be able to open them in Prime 7. Or, will the Prime 6 files need to be converted to run under Prime 7? (I'll test that tomorrow.)
Nobody who has just little experience with PTC did expect them to implement a converter which would be able to save a MC15 sheet to anything else than P7.
The question was if the converter of the still installed P6 would still work and be able to convert a MC15 sheet to P6 format. Up to P6 it was not possible to use the converters of older Prime versions, but as PTC seems to have changed the converters significantly (not to the best, as this thread proves), there was a small chance that the P6 converter still would work even though P7 is installed - after all, hope dies last
Given the last answer of @vroberts it looks like the behaviour did not change and the P6 converter is not able to convert a MC15 file to P6 format.
I think the main problem is now, that since Mathsoft was taken over in 2006 by PTC, the real engineers are no longer involved. I imagine that at the start of Mathcad in 1986 there were a few practising engineers who saw a need for a product like Mathcad. They knew how engineers tick and work and that was reflected in how it was implemented, despite the flaws. After being taken over by PTC the engineers gradually left and were replaced by software developers guided by managers. The pioneering spirit was gone. The new plans were dreamed up by the upper echelons who then threw it over the wall to the programmers. The distance between implementers and customers became ever larger. Chaos ensued ... So, as long as they can't come up with decent graphs and MC15 converter I don't need plans of new features and integration with CREO and so on, but proper implementations of features that now hamper the switching from MC15 to Px. It would help to retain customers too.
The polarization is an essential parameter of the electromagnetic (EM) wave, mentioning the oscillating direction of the electric field in a plane orthogonal to the wave propagation direction1. Controlling the polarization state of the EM wave has attracted more and more research attention due to many polarization-sensitive applications and devices2,3,4,5,6,7,8. Among devices that exhibit polarization conversion control, polarization converter has been studied extensively for various applications such as improvement of antenna gain10,11, interference and radar cross section (RCS) reduction12,13, and stereoisomer identification14. Conventional polarization converters using the optical activity of crystals and the Faraday effect are narrow bandwidth, bulky volume, and incident angle dependence; thus, they are incompatible for real-world applications15. Therefore, the design of the polarization converter with simple structure, compact size, and good performances with a broad bandwidth and wide angular stability has remained challenging. Recently, many polarization converters based on the artificial two-dimensional planar metamaterial structure called metasurfaces (MTS) have been developed, providing a potential approach to manipulate the polarization state of EM waves through adjusting material parameters or changing the dimension and geometry of metasurface16,17. The MTS have demonstrated the ability of polarization control in different frequency ranges of the EM spectrum, such as the microwave16,17,18,19,20, terahertz3,21, infrared22,23, and visible24,25. However, the reported designs included single-layer3,17,18,21,22,23,24,25,26,27,28,29,30,31,32 and multi-layer19,20,33,34,35,36 only achieve high polarization conversion performance for either cross polarization converter (CPC)3,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35 or linear-to-circular converter (LP-to-CP)36,37,38. More recently, many efforts have been made to develop a multifunctional polarization converter that exhibits both CPC and LP-to-CP conversion39,40,41,42,43,44 to miniature the size and reduce complexity and cost of the system43. Zheng et al. proposed a polarization converter that achieved CPC conversion in a lower band and LP-to-CP conversion in a higher band; however, it only operated efficiently for the normal incidence39. Furthermore, Ma et al. designed the multiband polarization converter composed of a two-corner-cut square disk surrounded by three concentric isomorphous rings that realized both CPC and LP-to-CP conversion in five frequency bands40. However, this design structure is only demonstrated for normal incidence and its operating frequency bands are almost not wide and/or polarization conversion efficiency is still low. Recently, Khan et al. reported a polarization converter that exhibited both CPC and LP-to-CP conversion; however, its incident angle stability is limited only for CPC conversion42. Therefore, the design of a single-layer multifunctional polarization converter with broad bandwidth and wide incidence angle stability for both CPC and LP-to-CP conversion is necessary to explore the potential practical applications.
Figure 1 shows a schematic of the proposed polarization converter (Fig. 1a) with a magnified unit cell (Fig. 1b). The converter structure consists of a periodic array of an anisotropic metasurface. The unit cell of the proposed converter is composed of a metallic two-corner-cut square patch resonator and a metallic ground plane separated by an FR-4 dielectric substrate with a thickness (h) of 1.6 mm. The top and the bottom layers are made by copper with an electric conductivity of \(5.96\times 10^7\) S/m and a thickness of 0.035 mm. The dielectric substrate has a relative dielectric constant of 4.3 and a loss tangent of 0.025. The geometrical parameters of the unit cell are given by P = 6.92 mm, b = 3.17 mm, a = 6.4 mm, as shown in Fig. 1b.
To evaluate polarization conversion performance of a linear polarization converter, the polarization conversion ratio (PCR) can be used. Assuming the polarization of the incident electric field is along to the y-axis, the PCR is calculated as Eq. (1)18,43. Similarly, for x-polarized incident wave, the subscripts x and y are interchanged in Eq. (1).
Similarly, the polarization maintaining ability of a circular polarization converter is determined by polarization maintaining ratio (PMR). The PMR for right-handed circularly polarized (RHCP) wave is shown in Eq. (2)40,43.
df19127ead