I'm an 80x86 guy (and not the OP), but I'm curious about what you're talking about here... It seems likely you've missed negative values, but I could me missing the full thing.
So, lets say I have a 4 bit 2's compliment number, 1101 (-3). and I want to divide by four. normal shifting will fail entirely, resulting in
0011 (3). Sign extended shifting will be closer, but still wrong 1111 (-1).
I would either need a real "divide" instruction, or I would need to check the sign, and then if < 0, I would negate and shift and negate back. Unless there is some other nifty trick I'm missing. I'd love to see it.
Either way, if the OP wants to use (x >> 7) in C, they will find negative values of x don't result in the desired value of x/128;
Didn't find your answer? Ask the community — no account required.
J
John Larkin
Why not just right-shift by 7?
-3/4 = -0.75, which you can't express in 4 bits.
He needs more bits. If the ADC is 12 bits, load its data into the upper 12 bits of a 16 bit word. Then you can signed-right-shift 4 and not lose any bits.
Or load it into the ms 12 bits of a 32-bit word, and you can shift/divide more.
I do some controllers in S32.32 math, signed 64 bits with the decimal point in the middle. It's as good as floats for most any physical reality, and much faster if you don't have hardware fp.
D
Daniel Pitts
My example was meant to find the whole number result, truncating the fractional part. This seems likely the use-case that the OP was concerned with as well.
Actually, my point was (and I was too sleepy to think of it when I wrote that), is that shift-right (if using a signed shift), will always "floor" the result. Many people expect it to round toward zero, since indeed that is what it does for positive integers.
J
Jasen Betts
IIRC this was for signal processing and rounding towards 0 will introduce crossover distortion so the rounding down that you get from a bit shift is may be more useful,
zeotrope at around 78 degrees (seems like the exact number depends on which source you read 78.2? 78.3? 78.5? I give up)
I'm guessing that unless it starts to boil, you just don't get much vapor. (I was going to suggest sci.chem... but that looks to be full of many of the same 'characters' as are on sci.physics.) (maybe we could ask Bill Sloman on SED?)
You'll get some partial pressure of each gas in the vapor. I should dig up my general chem. book. I don't recall any sort of practial discussion of distillation... maybe that's only covered in chem. eng.
George H.
M
mrdarrett
1 degree
m ethanol)
azeotrope at around 78 degrees (seems like the exact number depends on whi ch source you read 78.2? 78.3? 78.5? I give up)
Yup. It then becomes a diffusion problem (super slow compared to boiling).
formatting link
Now that I remember back from Organic Chem class, there is vacuum distillat ion. Less heat required for boiling, but now it's a trade-off because you have to power the vacuum pump.
formatting link
I remember using vacuum distillation to make DEET in Organic Chem class, I think it was because the DEET would decompose at atmospheric boiling temper atures.
Yup, Henry's Law and Raoult's Law. Ethanol-Water mixtures are non-ideal so lutions though (the ethanol and water molecules like each other too much)
formatting link
's_law
formatting link
's_law
Oh yeah, fugacity coefficients. These guys explain it much better than my Thermo text ever did...
formatting link
I'm a refugee from sci.engr.chem personally =)
It's discussed a little bit in Organic Chemistry (chemistry for second-year Biology and Chemistry majors.)
S
Steve Gonedes
< Say, isn't it legal to distill some of your own hooch in the US? < Maybe you need a permit/ license?
As far as I know condensation of any liquid is illegal in the united states - let alone distillation. Fermentation doesn't seem to be a problem so long as the local bomb sqaud doesn't confiscate all your worldly posessions.
If they find out that you are actually trying to condense water they become very aggregated and start to insist that your are hinding something. Maybe it's in the ``ether''? still dunno.
S
Steve Gonedes
< getting appropriate laboratory equipment and/or teflon and
The use of teflon is not legal. It contains floride wich is a non-potable metal contaminate (i.e., water that contains floride from unnatural sources is considered "unsafe to drink".). I am unable to find an MSDS on PTFE T-27730A on the google.
< food grade stainless) allowed legislators to justify keeping < a strong hold on the tax revenues for hard liquors.
what is food grade steel? just curious.
< What I did find is that if you are a "moonshiner" then you < need to secure at least one federal permit and pay taxes on < what you produce, even if only for personal use. I would < assume that if you sell any of it, that would be at least one < more permit, probably more fees, and probably inspections and < fees for that and who knows what else (appropriate bribes, < etc?)
I believe the big issue is "the transport of distilled spirits". It is not legal to transport distilled spirits - even as evidence (this may vary accorrding to which state the "transportation occured" in.). One raises the question - what is in the bottle, no?
< I didn't dwell on it.)
Me either.
S
Steve Gonedes
< It is rather odd that on Question 11 they would ask for the capacity. How < would I know what the capacity is unless I build it?
They probably want to know what strain of yeat(s) you are using. If I remember correctly some yeast will "die off" at 14% alcohol. You might need to count your grains of corn and grains of sugar.
J
Jon Kirwan
I'm no expert. I was simply cautioned to specify food grade stainless and contruction methods when buying some long term storage containers, so I did and wasn't questioned about it when I ordered them. I had done a little reading before, though, and the following summarizes what I'd gathered up.
There are certain types of stainless alloys and annealing used for food handling and containers. I gather what is used depends upon the use and the construction. I've read about types 302, 303, 304, 316, 420, and 430. (303 doesn't weld well, but machines okay, for example. So an application which requires welding wouldn't use it.) I think there is more than just "type" involved. For example, there are 304L and 316L types used for food. You may also have to watch out for additives, like sulfur, used to improve machining. Type number alone may not tell you all you need to know.
From "The Making and Shaping of Steel" from United States Sttel: Type 302, austenitic 18-8 with 0.15% max carbon, 8% to
10% nickel, and 17% to 19% chromium is corrosion resistant and has good ductility and may be deep drawn and formed. It may also be welded if the heat zones are cooled rapidly. (Otherwise intergrannular corrosion may happen in the welds. But that can be corrected by annealing above 1900F, followed by rapid cooling to trap the carbides in situ.)
It's also not only a type of steel but also how you handle the design and finishing methods to sufficiently reduce pits or anything else that may promote bacterial growth and also to provide surfaces that can be reliably (repeatably) cleaned and sanitized. You know, the welds need to be smooth for example and not deeply pitted, for example.
But you can't ignore the type of steel. The selection is limited by the food it will contain, duration, environment, and the methods of cleaning and reuse.
I wish I knew more about the subject, but I'm a consumer not a designer of these products.
Jon
M
mrdarrett
Food grade... this is not exactly my field either, but you certainly don't want lead in any welds.
18/10 and 18/0 (first number is percent chromium, second # is percent nicke l) seem popular in "food grade" stainless steels. Personally I dislike nic kel since some have allergies to it. I look for 18/0 in my cookware person ally. And besides, iron and chromium are important minerals. Copper too ( I think the early Alambic stills were made of copper.) Nickel and lead, no t so much.
Michael
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.